Digraph vertices and weights as strings

22 ビュー (過去 30 日間)
Antoine Lunaire
Antoine Lunaire 2020 年 9 月 4 日
コメント済み: Antoine Lunaire 2020 年 9 月 4 日
Hi Everybody,
I am interseted in creating a Directed graph in which the vertices and the weights are represented by descriptive names such as strings
So, I am dreaming to have something like this graph.
Any help is highly appreciated. Thanks in advance.
[SL: formatted the question as text not code]

採用された回答

Steven Lord
Steven Lord 2020 年 9 月 4 日
See the "Label Graph Nodes and Edges" example on this documentation page.
If you want the node and edge labels to be stored with the digraph rather than separately you could follow the instructions on this page and refer to those properties from the Nodes and Edges tables as shown in the "Label Nodes and Edges of Graph Plot" on that page.
  1 件のコメント
Antoine Lunaire
Antoine Lunaire 2020 年 9 月 4 日
Thank you so much, this was very helpful

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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