C++ Reference: class DenseConnectedComponentsFinder
Note: This documentation is automatically generated.
A connected components finder that only works on dense ints.Method | |
---|---|
AddEdge | Return type: Arguments: The main API is the same as ConnectedComponentsFinder (below): see the homonymous functions there. |
Connected | Return type: Arguments: |
DenseConnectedComponentsFinder | |
DenseConnectedComponentsFinder | Arguments: We support copy and move construction. |
DenseConnectedComponentsFinder | Arguments: |
FindRoot | Return type: Arguments: Returns the root of the set for the given node. node must be in [0;GetNumberOfNodes()-1]. Non-const because it does path compression internally. |
GetComponentIds | Return type: Returns the same as GetConnectedComponents(). |
GetComponentRoots | Return type: Gets the current set of root nodes in sorted order. Runs in amortized O(#components) time. |
GetNumberOfComponents | Return type: |
GetNumberOfNodes | Return type: |
GetSize | Return type: Arguments: |
SetNumberOfNodes | Return type: Arguments: Sets the number of nodes in the graph. The graph can only grow: this dies if "num_nodes" is lower or equal to any of the values ever given to AddEdge(), or lower than a previous value given to SetNumberOfNodes(). You need this if there are nodes that don't have any edges. |