| GabowSCC Class | 
The GabowSCC class represents a data type for determining the strong components in a digraph. The Id operation determines in which strong component a given vertex lies; the AreStronglyConnected operation determines whether two vertices are in the same strong component; and the Count operation determines the number of strong components.
The Component identifier of a component is one of the vertices in the strong component: two vertices have the same component identifier if and only if they are in the same strong component.
This implementation uses the Gabow's algorithm. The constructor takes time proportional to V + E (in the worst case), where V is the number of vertices and E is the number of edges. Afterwards, the Id, Count, and AreStronglyConnected operations take constant time.
For alternate implementations of the same API, see and .
Namespace: Algs4Net
public class GabowSCC
The GabowSCC type exposes the following members.
| Name | Description | |
|---|---|---|
| Id | 
             Returns the component id of the strong component containing vertex v.  | |
| MainTest | 
            Demo test the GabowSCC data type.  | |
| StronglyConnected | 
             Are vertices v and w in the same strong component?  | 
For additional documentation, see Section 4.2 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
This class is a C# port from the original Java class GabowSCC implementation by the respective authors.