Closed ZengJunTao111 closed 1 month ago
@ZengJunTao111
The parent node of the starting point is set to be null. In fact, during path backtracking, the parent node of the starting point is not traversed, and the iteration is terminated at the starting point.
Hi winter, I have a question. In this setvertex function, if node, when the current node is the first node, which is the starting point, does it not have a parent node, does the parent node not exist? So how is the parent node defined and handled in this function?