Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
1

Create curved edges in a graph

asked 11 years ago

torrho gravatar image

Hello,

It seems that I am only able to create rectilinear graphs in sage. e.g. K13 in two concentric circles:

g = graphs.CompleteGraph(13)
_circle_embedding(g,[0,1,2,3,4,5,6],center=(0,0),radius=6,shift=0)
_circle_embedding(g,[7,8,9,10,11,12],center=(0,0),radius=12,shift=0)
g.show()

I'd like to add an image of what this code produces, but I don't have enough karma.

I want my edges to have curves; something like this Paley Graph.

Any ideas on how to do this?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

Nathann gravatar image

It is not possible right now, not unless you write yourself with matplotlib the code that generates the drawing.

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

Seen: 628 times

Last updated: May 03 '13