I am new in Matlab that's why I want to know, how to create a graph with edges and also how to access those edges. please help me.

1 件のコメント

sakina Ashraf
sakina Ashraf 2020 年 12 月 13 日
編集済み: Walter Roberson 2020 年 12 月 13 日
v=[1:n]
e=[2:n,1,n+2:2*n,n+1]
G=graph(v,e)
plot(G)

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

 採用された回答

Guillaume
Guillaume 2018 年 11 月 12 日

0 投票

Your question is so vague that it's impossible to answer it properly.
The only thing we can do is point you to the graph documentation or possibly digraph if your graph is directed. There are plenty of examples there that show how to create, edit, display and work with graphs.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

質問済み:

2018 年 11 月 12 日

編集済み:

2020 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by