Create vertex with edges.
Mostrar comentarios más antiguos
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 comentario
sakina Ashraf
el 13 de Dic. de 2020
Editada: Walter Roberson
el 13 de Dic. de 2020
v=[1:n]
e=[2:n,1,n+2:2*n,n+1]
G=graph(v,e)
plot(G)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!