Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing an undirected graph in inkscape

Tags:

inkscape

I need to draw some undirected graphs with different coloured vertices. Previously I have been doing this the tedious way, by drawing every vertex as a circle and every edge as a straight line. Is there a way that I can do this easily by using the Bezier curve function? I have tried to do this, but can't work out how to add vertices to my lines!

like image 775
David Ward Avatar asked Jan 25 '26 04:01

David Ward


1 Answers

I'm guessing you want to create un-directed graphs with curved edges (since you mention Bezier curves).

I find that the easiest way to draw freestyle graphs is to lay down your vertices as circles (copy & paste for consistent size) and then use the "draw freehand lines" option (pencil icon) to connect the dots. Then you send the circles to the front layer, so the lines look like they start and end at the edges of your circles. If you really want to use Bezier curves instead of free hand, then the method applies just the same. Here's a sample I created using the first method.

graph picture

Hope this helps.

like image 171
Christian Bueno Avatar answered Jan 27 '26 01:01

Christian Bueno