You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking if a graph is a valid path here, the code should check if it's even possible to be true given the number of vertices and edges, as a path must have n - 1 edges. This can early identify some non-paths.
Implement the number of edges in a path as another fact (zero vertices must be correctly handled, too).
The text was updated successfully, but these errors were encountered:
When checking if a graph is a valid path here, the code should check if it's even possible to be true given the number of vertices and edges, as a path must have n - 1 edges. This can early identify some non-paths.
Implement the number of edges in a path as another fact (zero vertices must be correctly handled, too).
The text was updated successfully, but these errors were encountered: