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
* 1. we build the graph one edge at a time, each time, we add both edge[0] to the neighbors of edge[1] and vice versa since this is an un-directed graph;
93
93
* 2. as soon as we encounter an edge that can connect to each other, it must be the redundant one.
94
+
* In other words, we first check if this new edge is needed or not based on the current existing graph:
95
+
* if the two nodes connected by this edge is already connected, then this edge is redundant.
0 commit comments