Create DirectedGraph.js