betti_numbers() counts the holes of a simplicial complex in each
dimension: \(\beta_0\) is the number of connected components,
\(\beta_1\) the number of independent loops (cycles not filled in by
triangles), \(\beta_2\) the number of enclosed voids, and so on up to
the dimension of the complex.
Betti numbers describe the complex as it was built; a clique complex
built at a different threshold can give different numbers.
persistent_homology() follows each hole across all thresholds and shows
how long it lasts.
Arguments
- sc
A
simplicial_complexfrombuild_simplicial(). When it was built with amax_dimbelow its largest clique, the top Betti number counts cycles whose filling simplices were not built, so it is an upper bound, and a warning of classnestimate_truncated_complexsays so.
Value
A named integer vector c(b0 = , b1 = , ...), one entry per
dimension from 0 to the dimension of the complex.
Details
\(\beta_k\) is the dimension of the k-th homology group, the number of
k-simplices minus the rank of the k-th boundary matrix, minus the rank of
the (k + 1)-th. The ranks are computed with qr() on the signed boundary
matrices.