[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The life of a Grob
From: |
Joe Neeman |
Subject: |
Re: The life of a Grob |
Date: |
Mon, 18 Sep 2006 07:53:10 +1000 |
On Sun, 2006-09-17 at 20:35 +0200, Ruud van Silfhout wrote:
> >> 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.
Ah, thanks for the info -- I hadn't realised that edges could be
labelled like that. In fact, in the list of attributes on the graphviz
website, I see that there are headlabel and taillabel attributes that do
exactly what Werner suggested.
Thanks,
Joe
Re: The life of a Grob, Werner LEMBERG, 2006/09/16