tgv (temporal graphviz)

Generate a temporal graphviz graph representation (in DOT language) from a
temporal graphviz file (in TGV language, described below), ready to be spread
by gv2graphml.
Usage
Usage: tgv [OPTION]... [FILE]
Generate a graphviz graph representation (in DOT language) from a temporal
graphviz file (in TGV language, described below), ready to be spread in multiple
files by gv2graphml. It reads input data from FILE, or from the standard input
if no FILE is given.
TGV language:
tgv is similar to a preprocessor, its statements are evaluated when keywords are
present in the begining of a line, otherwise the text of the line is left as is.
TGV has only a few keywords: for, link, clique, star
for NUM {}
Allows to repeat the statements inside the braces NUM times. The links
it contains will have a "t" attribute that gets incremented after each
loop.
link ID1 ID2
Generate a link between ID1 and ID2.
clique ID1 ID2 [IDn]...
Generate all the links of a clique of given nodes.
star ID1 ID2 [IDn]...
Generate links between the given nodes in star topology with the first
one as the central node.
In addition to other attributes, each link have a randomly generated "weight"
attribute (based on -seed), following a normal distribution.
Example:
graph {
for 1 {
clique 1 2 3 4 5
link 5 6
}
for 42 {
clique 1 2 3
clique 4 5 6
}
}
Options:
-digraph
Emit links for digraph instead of graph.
-o OUTFILE
If specified, the output will be written into the file OUTFILE. Otherwise,
output is written to standard out.
-seed NUM
Use NUM as the seed for weight variation. (default 1)
-version
Show version and exit.