Persistent homology of a Helix alpha complex by union-find instead of matrix reduction: degree 0 on the vertices and edges, the top degree d - 1 on the dual graph of the top-dimensional simplices, as in FastCubicalHomologyEngine. In the plane those cover everything; in dimension 3 and up the degrees in between are computed by the cohomology engine on the complex without its top simplices. Works in any ambient dimension from 2, with representatives for every bar.
The dual graph needs every facet to have one or two top-dimensional cofaces. Unlike a grid, a triangulation does not guarantee it, so it is checked first, throwing FastAlphaTriangulationException when it fails (rare on random points). A facet's dual-edge value is its own filtration value, which can be smaller than its cofaces' circumradii (a Gabriel edge).
Every bar of the alpha filtration up to degree maxDimension (default: all, up to d - 1), with representatives; zero-length bars only if includeZeroLength. Below the top degree only the simplices of dimension maxDimension + 1 and lower are built, as for any other engine, and the dual graph is walked only when the top degree is asked for.
Every bar of the alpha filtration up to degree maxDimension (default: all, up to d - 1), with representatives; zero-length bars only if includeZeroLength. Below the top degree only the simplices of dimension maxDimension + 1 and lower are built, as for any other engine, and the dual graph is walked only when the top degree is asked for.
Only the top degree d - 1, the bars of the dual union-find: no simplex below the top dimension is built and no matrix is reduced, so the cost is one pass over the top simplices and their facets. The lower degrees come from persistentHomology.
Only the top degree d - 1, the bars of the dual union-find: no simplex below the top dimension is built and no matrix is reduced, so the cost is one pass over the top simplices and their facets. The lower degrees come from persistentHomology.