createNode implemented in DirectedGraph