Function

connectedComponents

Decomposes an undirected graph into its connected components.

Include Headers

seqan/graph_algorithms.h

Parameters

In-parameter:An undirected graph. Types: Undirected Graph | |

Out-parameter:A property map. Remarks: Each vertex is mapped to a component id. If two vertices share the same id they are in the same component. |

Return Values

The number of components.

SeqAn - Sequence Analysis Library - www.seqan.de