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
This algorithm is based on Floyd min-generate tree.
Use union-sets to judge whether two points are in the same tree. If true, then there must lead to a circle / loop, which should be removed.