Use the graph laplacian to get the number of graph components.

GetComponents(data, tol = 0.01)

Arguments

data

a symmetric nonnegative similarity matrix

tol

cutoff for lambda zero

Value

the number of components