コード例 #1
0
def main(csv_file, output):
    
    graph = Graph()
    records = csv.reader(open(csv_file, 'r'))
    for record in open_csv(csv_file):
        graph.add_node(record[0], record[1], record[2], record[3], record[4])

    # TODO - get this to work directly with graphviz rather than a screen print
    print graph.render()