Graphviz

Graphviz is an open source graph visualization software. It reads a text file description of a graph and generates an image automatically.

Reference: Graphviz - Graph Visualization Software

Usage

Graphviz provides many binaries for building the image:

binarydescription
dotfilter for drawing directed graphs
neatofilter for drawing undirected graphs
twopifilter for radial layouts of graphs
circofilter for circular layout of graphs
fdpfilter for drawing undirected graphs
sfdpfilter for drawing large undirected graphs
patchworkfilter for squarified tree maps
osagefilter for array-based layouts

I mostly use dot.

dot -Tpng graph.dot -o graph.png

Example

hello.dot

digraph {
    hello -> world
}
dot -Tpng hello.dot -o hello.png

hello.png

Hello, Graphviz!

Useful Attributes

AttributeDescription
rankdirSet direction of graph layout (LR / TB)
labelText label attached to objects