@@ -0,0 +1,889 @@
+#!/usr/bin/python%0A%0Aimport sys%0Aimport argparse%0Afrom graphviz import Digraph%0A%0Aparser = argparse.ArgumentParser(%0A    description=%22Generates a GraphViz file from *.graph and *.data files.%22%0A    )%0Aparser.add_argument(%22--data%22, type=argparse.FileType(%22r%22),%0A    help=%22Data input file.%22)%0Aparser.add_argument(%22--graph%22, type=argparse.FileType(%22r%22),%0A    help=%22Graph input file.%22)%0A%0Aif __name__ == %22__main__%22:%0A    args = parser.parse_args()%0A%0A    dot = Digraph(%0A        graph_attr=%7B'size':'64,40'%7D,%0A        node_attr=%7B'shape':'circle', 'label':'', 'style':'filled',%0A            'fillcolor':'lightskyblue2', 'nodesep':'1.0', 'ranksep':'1.0'%7D,%0A        edge_attr=%7B'weight':'1.5'%7D%0A        )%0A%0A    for line in args.data:%0A        node, value = line.split(%22,%22, 1)%0A        dot.node(node)%0A    %0A    for line in args.graph:%0A        a, b = line.split(%22,%22, 1)%0A        dot.edge(a, b)%0A%0A    sys.stdout.write(dot.source)%0A

Add script to generate GraphViz files from .graph and .data files.