ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 20 Jan 2018 15:44:19 +0100Dotted and dashed lines in directed graphshttps://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/Hi,
I would like to know if it is possible to do (one of) the following with Sage.
Reading
http://doc.sagemath.org/html/en/reference/plotting/sage/graphs/graph_plot.html
I saw that it is possible to draw dashed and dotted lines. Now my questions are
1) Is it possible to produce an output graphic where some edges are dotted and some edges are dashed?
2) Is it possible to force the text in the labels of the vertices, e.g. M2, M4, M1 instead of 0,1,2?
Thanks for the help!
Fri, 04 Dec 2015 03:39:18 +0100https://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/Answer by kcrisman for <p>Hi,</p>
<p>I would like to know if it is possible to do (one of) the following with Sage.</p>
<p>Reading</p>
<p><a href="http://doc.sagemath.org/html/en/reference/plotting/sage/graphs/graph_plot.html">http://doc.sagemath.org/html/en/refer...</a></p>
<p>I saw that it is possible to draw dashed and dotted lines. Now my questions are</p>
<p>1) Is it possible to produce an output graphic where some edges are dotted and some edges are dashed?</p>
<p>2) Is it possible to force the text in the labels of the vertices, e.g. M2, M4, M1 instead of 0,1,2?</p>
<p>Thanks for the help!</p>
https://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/?answer=31328#post-id-31328For the second question, I think you'd have to actually name the vertices by the names you want printed. Which is certainly supported. Fri, 04 Dec 2015 21:53:47 +0100https://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/?answer=31328#post-id-31328Comment by Bern for <p>For the second question, I think you'd have to actually name the vertices by the names you want printed. Which is certainly supported. </p>
https://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/?comment=40715#post-id-40715Thank you for your answer. Maybe the answer to thie following other question of mine is also helpful:
https://ask.sagemath.org/question/35638/drawing-auslander-reiten-quivers-with-sage-possible/Sat, 20 Jan 2018 15:44:19 +0100https://ask.sagemath.org/question/31304/dotted-and-dashed-lines-in-directed-graphs/?comment=40715#post-id-40715