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!