Digraph Overlaid on a Geo Map

3 ビュー (過去 30 日間)
Kamal Premaratne
Kamal Premaratne 2021 年 4 月 2 日
回答済み: Steven Lord 2021 年 4 月 2 日
I have a 51-node digraph G where each node represents a US state capital (50 states + Washington DC). I also have the [latitude, longitude] associated with each node; they are capture within the node table (as G.Nodes.XCoord and G.Nodes.YCoord). I want to draw this digraph overlaid on a US map. I would very much appreciate any help on how this could be done. Thank you.

回答 (1 件)

Steven Lord
Steven Lord 2021 年 4 月 2 日
See this blog post. While it plots the nodes using the state centroids, there's no reason you couldn't use the capital locations instead. I don't know if you can plot a graph or digraph on a map axes, however. I haven't tried it.

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by