Lets say I have a text file with the following data:
Form1 | L3 | depends on L4 and L5
Form1 | L4 | no dependence
Form1 | L5 | depends on L6
Form1 | L7 | no dependence
What I would like to do is output a directed graph (where direction means "depends on"). In this example, we would have a graph with 2 components, one being a single vertex labelled "L7", and the other being 4 vertices connected in series (a 4-path), with arrows in the obvious directions.
I'm using Python 2.7 on a mac. I'm also very new to programming, but very skilled in mathematics (if that makes a difference).