Create vertex with edges.
Ältere Kommentare anzeigen
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 Kommentar
sakina Ashraf
am 13 Dez. 2020
Bearbeitet: Walter Roberson
am 13 Dez. 2020
v=[1:n]
e=[2:n,1,n+2:2*n,n+1]
G=graph(v,e)
plot(G)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!