ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 02 May 2013 22:26:39 -0500Create curved edges in a graphhttp://ask.sagemath.org/question/10081/create-curved-edges-in-a-graph/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](http://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Paley13.svg/500px-Paley13.svg.png).
Any ideas on how to do this?Thu, 02 May 2013 06:20:32 -0500http://ask.sagemath.org/question/10081/create-curved-edges-in-a-graph/Answer by Nathann for <p>Hello,</p>
<p>It seems that I am only able to create rectilinear graphs in sage. e.g. $K_{13}$ in two concentric circles:</p>
<pre><code>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()
</code></pre>
<p>I'd like to add an image of what this code produces, but I don't have enough karma.</p>
<p>I want my edges to have curves; something like this <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Paley13.svg/500px-Paley13.svg.png">Paley Graph</a>.</p>
<p>Any ideas on how to do this?</p>
http://ask.sagemath.org/question/10081/create-curved-edges-in-a-graph/?answer=14875#post-id-14875It is not possible right now, not unless you write yourself with matplotlib the code that generates the drawing.Thu, 02 May 2013 22:26:39 -0500http://ask.sagemath.org/question/10081/create-curved-edges-in-a-graph/?answer=14875#post-id-14875