problem with plot Directed graph in Matlab

I'm tring to plot a directed Grapph (a road network). However, when I use graph.plot it connects two links with two arcs (as default) since it's a Digraph so I was wondering how can I plot two connected nodes with two links with straight lines.

2 comentarios

Ayush Gupta
Ayush Gupta el 24 de Mzo. de 2020
Since it is a multigraph, the edges are in an arc shape, so that they do not coincide and helps avoid confusion. You will be seeing straight lines in the case of a simple graph. Please refer to the doc for example on plotting directed graphs
Maria Afsharirad
Maria Afsharirad el 11 de Oct. de 2020
I do have the same problem, but it sounds there is no solution for it!!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Networks en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Mzo. de 2020

Comentada:

el 11 de Oct. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by