graph weight overlap and arrow size

I have plotted a weighted directed graph as shown below. Everything is fine except two major points:
  1. The weights of different edges overlap so they are not reable.
  2. the arrow size is quite small in a way that if I can increase the line width to 2, then technically they cannot be read.
Any help is appreciated.
Majidgraph.jpg

Respuestas (1)

Christine Tobler
Christine Tobler el 20 de Feb. de 2019

0 votos

  1. There isn't a solution for this at the moment, unfortunately. One alternative would be to set the LineWidth based on the edge weight, but this of course only gives an approximate idea of the line width. Another is to just try out different layouts, and see if there are overlaps there.
  2. Set the ArrowSize property to a larger value, plot(g, 'ArrowSize', 10), for example.

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Feb. de 2019

Respondida:

el 20 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by