Ask Your Question
1

Create curved edges in a graph

asked 2013-05-02 13:20:32 +0200

torrho gravatar image

Hello,

It seems that I am only able to create rectilinear graphs in sage. e.g. $K_{13}$ 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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-05-03 05:26:39 +0200

Nathann gravatar image

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

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: 2013-05-02 13:20:32 +0200

Seen: 541 times

Last updated: May 03 '13