Tool for creating ordered graphviz circo loops. Generates a plain graphviz circo loop then hardcodes it and adds to it.
graphviz, bash, coreutils
loopgen.sh input > output.dot
x number of nodes
prefixes for the generated file (format information, labels)
(blank)
postfixes for the final file (extra connections, inputscale)
Note that if an edge already exists in the prefix, loopgen won't remake it.
graph with node0 to nodex
input file
6
node0 [label="bop it"];
node1 [label="twist it"];
node2 [label="pull it"];
node3 [label="flick it"];
node4 [label="spin it"];
node5 [label="throw it away"];
node5 -> node0 [style=invis];
node0 -> node3;
// this keeps the program from running out of memory
inputscale=72
command
loopgen.sh input | neato -Tpng > output.png