Added a networkx graph structure to the rosetree

This is for the homework and visualizing the parse tree.