[graph-tool] About reading and drawing vertex labels

Tiago de Paula Peixoto tiago at skewed.de
Sat Oct 8 16:40:26 CEST 2016

On 08.10.2016 15:34, Snehal Shekatkar wrote:
> Dear all,
> Can anybody kindly help me with this? I have a graph stored in the .gml
> format with each vertex labelled by some name. I want to draw these labels
> on top of the vertices while drawing the graph but I couldn't find any
> description of that in the documentation.

The labels are stored as internal properties. Please read the documentation
about property maps:


and the documentation of the graph_draw() function


(look for the vertex_text option)


Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20161008/e198613d/attachment.asc>

More information about the graph-tool mailing list