Added DirectedGraph implementation.