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
Alexandre Rabérin edited this page May 12, 2020
·
1 revision
Incremental Connected Components
This algorithm maintains a set of connected components for growing graphs (added edges only). Under the hood, it uses a disjoint set data structure to keep track of the components.
The AlgorithmExtensions.IncrementalConnectedComponents allows to retrieve a delegate that returns the updated component count and map on each call. The delegate is a Func<KeyValuePair<int, IDictionary<TVertex, int>>> where Key is the component count and Value is the map of vertices to component index.