Finished DirectedGraph implementation.