Ask Your Question

How to show circular graphs?

asked 2015-10-15 10:40:22 -0600

Oslovite gravatar image

updated 2015-10-16 12:14:01 -0600

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 11:20:19 -0600

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 10:40:22 -0600

Seen: 263 times

Last updated: Oct 15 '15