Ask Your Question

Dotted and dashed lines in directed graphs

asked 2015-12-04 03:39:18 +0200

Bern gravatar image

updated 2018-10-11 11:52:53 +0200

FrédéricC gravatar image


I would like to know if it is possible to do (one of) the following with Sage.


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!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-12-04 21:53:47 +0200

kcrisman gravatar image

For the second question, I think you'd have to actually name the vertices by the names you want printed. Which is certainly supported.

edit flag offensive delete link more


Thank you for your answer. Maybe the answer to thie following other question of mine is also helpful:

Bern gravatar imageBern ( 2018-01-20 15:44:19 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-12-04 03:39:18 +0200

Seen: 566 times

Last updated: Dec 04 '15