MATLAB: Undirected graph network with latitude and longitude as node

graphMapping Toolbox

Is there any way to plot graph structure describing nodes, edges and links but with latitude and logitude as the co-ordinates using MATLAB, like the one describe here:

Best Answer

See this post on Loren Shure's blog for an example that plots US states (as polyshape objects) along with their centroids (as nodes of a graph, with two centroids connected by an edge if the states they represent share a border.) The latitude and longitude data comes from a shapefile included in Mapping Toolbox.
If you had coordinates for the capitals of those states, you could store that data in the Nodes table of the graph as custom attributes and use those as the X and Y data (and Z data, I suppose, though that may not be so useful) when you call plot on the graph.
Related Question