Ask Your Question
1

How to show circular graphs?

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

Oslovite gravatar image

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

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 18:20:19 +0100

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 17:40:22 +0100

Seen: 561 times

Last updated: Oct 15 '15