added path() to DirectedGraph