Update DirectedGraph.js