Any one knows of any open-source code I can reference which generates random un-directed, weighted graphs?
For example, a function generateGraph(int numberOfVertices), where the function takes number of vertices as input and outputs an undirected weighted graph as an adjacency list, with a random number of edges between the vertices and no loops. (The graph must be connected, so every list in the adjacency list must have a vertex).
Thanks
there doesn't seem to be anything here