You are here: Start » AVL.NET » AVL.FindConnectedComponents Method
AVL.FindConnectedComponents Method
Finds connected components in a graph given as set of bidirectional connections.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void FindConnectedComponents( int[][] inConnections, out int[][] outComponents, out int[] outElementLabels )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inConnections | int | List of connections for each element. | |||
outComponents | int | List of input element indices for each connected component. | |||
outElementLabels | int | Index of a component for each input element. |