Dvandenburg117 / cs435-Project2

0 stars 0 forks source link

Comment #8 #8

Open beginnerCS opened 4 years ago

beginnerCS commented 4 years ago

In your DFS and BFS function, you used the == function to determine whether the node was found. Though this works for this occasion, if there are two nodes with the same value, this will fail. If you are looking for a specific node, it might be better to use "is" to determine if it is the exact same node object.