Ask Your Question
1

How to show circular graphs?

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

Oslovite gravatar image

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

FrédéricC gravatar image

Hello,

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
2

answered 2015-10-15 11:20:19 -0500

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

Stats

Asked: 2015-10-15 10:40:22 -0500

Seen: 164 times

Last updated: Oct 15 '15