getRightMostChild method

Node? getRightMostChild(
  1. Graph graph,
  2. Node? node
)

Implementation

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