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