Create vertex with edges.
Mostra commenti meno recenti
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 Commento
sakina Ashraf
il 13 Dic 2020
Modificato: Walter Roberson
il 13 Dic 2020
v=[1:n]
e=[2:n,1,n+2:2*n,n+1]
G=graph(v,e)
plot(G)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graph and Network Algorithms in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!