|
From: | Ruud van Silfhout |
Subject: | Re: The life of a Grob |
Date: | Sun, 17 Sep 2006 20:35:19 +0200 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
I don't suppose you'd know how to do this in graphviz? I'm quite new to it.
Hi,Adding a label to a node is done by adding an extra line in the dot-file containing the name of the node followed by [label="1: yourlabeltext"];
so for a node with name x this would be: x [label="1: yourlabeltext"];adding labels to edges is done the same way add: a -> b [label= "edgelabel"];. However, AFAICT an edge only supports one label, which will be placed by dot. More can be read in the dot-manual: http://www.graphviz.org/Documentation/dotguide.pdf. see figure 3.
Bye, Ruud van Silfhout
[Prev in Thread] | Current Thread | [Next in Thread] |