This is where navigation should be.


GSP_MINNESOTA - Initialize the Minnesota road network

Usage

G = gsp_minnesota();
G = gsp_minnesota(connect);

Input parameters

connect change the graph so that it is connected (default 1)

Output parameters

G Graph structure.

Description

'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);
gsp_minnesota_1_1.png

References:

D. Gleich. The MatlabBGL Matlab library. http://www.cs.purdue.edu/homes/dgleich/packages/matlab_bgl/index.html.