Ask Your Question
1

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

asked 2015-02-28 10:56:36 +0100

Eugene gravatar image

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:

G.plot(edge_labels=True)

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-02-28 11:42:09 +0100

Nathann gravatar image

No, I do not think that there is. If you do not have many weights you can adapt the color of each edge individually I guess (use the edge_colors argument). This software, however, is open-source, so you can add whatever you miss.

http://www.sagemath.org/doc/reference...

Nathann

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-28 10:56:36 +0100

Seen: 1,000 times

Last updated: Feb 28 '15