Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dot graph without labels

Tags:

graphviz

dot

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.

like image 535
user414585 Avatar asked Aug 04 '11 07:08

user414585


People also ask

What is a .DOT file graph?

DOT is the text file format of the suite GraphViz. It has a human-readable syntax that describes network data, including subgraphs and elements appearances (i.e. color, width, label).

What is the dot language called?

What is Braille? Braille is a system of touch reading and writing for blind persons in which raised dots represent the letters of the alphabet. It also contains equivalents for punctuation marks and provides symbols to show letter groupings.

What is Pydot in Python?

Pydot is a Python library, also written in Python, that "serves as a graphical interface to Graphviz, an open source graph visualization software. GraphViz is written in DOT language, but Pydot provides the ability to parse and dump data, between Python and DOT."[

How do you make a graph on GraphViz?

Create a graph object, assemble the graph by adding nodes and edges, and retrieve its DOT source code string. Save the source code to a file and render it with the Graphviz installation of your system. Use the view option/method to directly inspect the resulting (PDF, PNG, SVG, etc.) file with its default application.


1 Answers

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]
like image 136
marapet Avatar answered Sep 29 '22 11:09

marapet