Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there other ways to visualize weights of the graph edges aside from labels?

Assuming I have graph:

M = Matrix([[0,1,-1],[1,0,-1/2],[-1,-1/2,0]])
G = Graph(M)

In order to plot it and visualize edge weights I can do:


This will put labels on the edges, but is there other ways? For example, varying edge thickness in regard to the weight it represents, so the higher weight will be represented by thick lines and lower by thin lines? Or, more generally, is there other ways of visualization of the weights?