Digraph vertices and weights as strings

조회 수: 21 (최근 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 CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by