First time here? Check out the FAQ!

Ask Your Question
1

How to show circular graphs?

asked 9 years ago

Oslovite gravatar image

updated 9 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 9 years ago

tmonteil gravatar image

If G is your graph, you can do:

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

see G.plot? for details.

Preview: (hide)
link

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: 9 years ago

Seen: 612 times

Last updated: Oct 15 '15