I want to create randomly an undirected connected graph $G=(V,E)$ with $n$ nodes and $m$ edges using Matlab. How can I do this?
-
3$\begingroup$ That depends on the properties and probability distributions you want the random graphs to possess. Random googling provides many links, such as mathworks.com/matlabcentral/answers/… , mathworks.com/matlabcentral/fileexchange/…, and mathworks.com/matlabcentral/answers/… to get you started. $\endgroup$– Mark L. StoneJan 31, 2021 at 22:29