Create vertex with edges.
古いコメントを表示
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
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)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!