This algorithm determines the number of connected components of an undirected network.

- Albert, R. and Barabási, A.-L.(2002). Statistical mechanics of complex networks. Reviews of Modern Physics. 74:47-97.

This algorithm was written by Santo Fortunato. It was integrated by Santo Fortunato and Weixia Huang.