dot graph without labels

user414585 picture user414585 · Aug 4, 2011 · Viewed 7.8k times · Source

I have a graph file to draw using "dot". I don't want to show any label for any node. I am wondering how to do this without specifying a configuration for each node since there are too many nodes in the graph.

Answer

marapet picture marapet · Aug 4, 2011

Try inserting the following line before all node declarations:

node[label=""];

Of course, nodes which have their label property defined will still have their label displayed.

Also, if I remember correctly, at least one node shapes does not use the label:

node[shape=point]