Back to FabImage Library website

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

FindConnectedComponents


Header: FIL.h
Namespace: fil
Module: FoundationPro

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

Syntax

C++
C#
 
void fil::FindConnectedComponents
(
	const ftl::Array<ftl::Array<int> >& inConnections,
	ftl::Array<ftl::Array<int> >& outComponents,
	ftl::Array<int>& outElementLabels,
	bool& outFound = ftl::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>()