Ask Your Question

How to show circular graphs?

asked 2015-10-15 17:40:22 +0200

Oslovite gravatar image

updated 2015-10-16 19:14:01 +0200

FrédéricC gravatar image


I'd like to plot a graph (for example, G), but I don't like the random way sage shows it to me. I'd like the vertices of the graph to be on a circular layout. How do I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-10-15 18:20:19 +0200

tmonteil gravatar image

If G is your graph, you can do:

sage: G.plot(layout='circular')

see G.plot? for details.

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


Asked: 2015-10-15 17:40:22 +0200

Seen: 540 times

Last updated: Oct 15 '15