Back to Aurora Vision Library website

You are here: Start » Function Reference » Data Classification » Clustering » FindConnectedComponents

FindConnectedComponents


Header: AVL.h
Namespace: avl
Module: FoundationPro

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

Syntax

C++
C#
 
void avl::FindConnectedComponents
(
	const atl::Array<atl::Array<int> >& inConnections,
	atl::Array<atl::Array<int> >& outComponents,
	atl::Array<int>& outElementLabels,
	bool& outFound = atl::Dummy<bool>()
)

Parameters

Name Type Default Description
Input value inConnections const Array<Array<int> >& List of connections for each element
Output value outComponents Array<Array<int> >& List of input element indices for each connected component
Output value outElementLabels Array<int>& Index of a component for each input element
Output value outFound bool& Dummy<bool>()