Graphviz

From Robert-Depot
Jump to: navigation, search

<<< back to Wiki Home

Neato

"spring model layouts. This is the default tool to use if the graph is not too large (about 100 nodes) and you don't know anything else about it. Neato attempts to minimize a global energy function, which is equivalent to statistical multi-dimensional scaling. [1]

graph G {
    run -- intr;
    intr -- runbl;
    runbl -- run;
    run -- kernel;
    kernel -- zombie;
    kernel -- sleep;
    kernel -- runmem;
    sleep -- swap;
    swap -- runswap;
    runswap -- new;
    runswap -- runmem;
    new -- runmem;
    sleep -- runmem;
}
neato -Tpng kernel.dot -o kernel.png

Kernel.png

output formatting

http://www.graphviz.org/doc/info/output.html