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!