You are here: Start » AVL.NET » AVL.FindConnectedComponents

AVL.FindConnectedComponents

Finds connected components in a graph given as set of bidirectional connections.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FindConnectedComponents
(
	int[][] inConnections,
	out int[][] outComponents,
	out int[] outElementLabels,
	out bool outFound
)

Parameters

Name Type Range Default Description
inConnectionsint[][]List of connections for each element.
outComponentsint[][]List of input element indices for each connected component.
outElementLabelsint[]Index of a component for each input element.
outFoundbool

See also