Node? getRightMostChild(Graph graph, Node? node) { var children = successorsOf(node); return children.isEmpty ? null : children.last; }