Renamed getRoot() to getNode() in DirectedAcyclicGraph