nextRight method

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

Implementation

Node? nextRight(Graph graph, Node? node) {
  return graph.hasSuccessor(node) ? getRightMostChild(graph, node) : getNodeData(node)?.thread;
}