G = gsp_minnesota(); G = gsp_minnesota(connect);
connect | change the graph so that it is connected (default 1) |
G | Graph structure. |
'gsp_minnesota()' initializes a graph structure containing the weighted adjacency matrix (G.W), the number of vertices (G.N), the plotting coordinates (G.coords), and the plotting coordinate limits (G.limits) of the Minnesota road network from the MatlabBGL library.
Remark: if connect is set to 1. We adjust the adjacency matrix so that all edge weights are equal to 1, and the graph is connected. It is the default!
To get the orinial disconnected graph, use:
G = gsp_minnesota(connect);
Example:
G = gsp_minnesota(); paramplot.show_edges = 1; gsp_plot_graph(G,paramplot);
D. Gleich. The MatlabBGL Matlab library. http://www.cs.purdue.edu/homes/dgleich/packages/matlab_bgl/index.html.