How this calculation works
Accept complexes with both additions and removals and return interval decomposition of the resulting homology representation. Existing page only grows a planar Vietoris–Rips filtration; deletion cannot be represented there.
V_i=H_d(K_i;GF(2)); V_0 ↔ V_1 ↔ … ↔ V_r ≅ direct sum of interval modules I[b,e].A worked example
Start with the three edges of a triangle, add its filled face, then remove that face. With arrows K0→K1←K2, H0 has one interval [0,2], while H1 has two intervals [0,0] and [2,2].
Good to know
2–10 complexes; at most 20 vertices and 60 expanded simplices in their union; dimension at most two; H0/H1 over GF(2). Each arrow must be a verified inclusion in its indicated direction.
Reference: Carlsson and de Silva, Zigzag Persistence (opens in a new tab) ↗
Specify a sequence that may grow or shrink
An ordinary filtration only adds simplices. A zigzag instead permits the next complex to be contained in the previous one, so the homology map can point backward in sequence order. This records additions and removals without forcing time to run backward.
Enter each finite complex explicitly and indicate the direction of every adjacent inclusion. A backward arrow means the complex on its right is a subcomplex of the one on its left. It does not request an inverse of a forward homology map.
Compare this with the Persistent homology calculator for a small point cloud. Accept complexes with both additions and removals and return interval decomposition of the resulting homology representation. Existing page only grows a planar Vietoris–Rips filtration; deletion cannot be represented there.
Make every complex closed under taking faces
A triangle includes its three edges and three vertices. Expanding maximal simplices makes these required faces explicit before an inclusion is checked. Merely comparing the entered row lists can miss an inclusion when one list uses a filled triangle and another lists its edges.
Vertex labels identify the same vertices throughout the sequence. Coordinates and distances play no role in this input model. If two observations represent different vertices, give them different labels even when a drawing places them at the same location.
Compute cycles and boundaries over two elements
For each complex, the boundary matrices describe which vertices bound edges and which edges bound triangles. Computation over GF(2) treats repeated contributions modulo two. This removes orientation signs while preserving the distinction between cycles and boundaries.
The quotient of cycles by boundaries supplies a homology vector space at each index. H0 records connected components and H1 records independent loops. A filled triangular face kills its boundary loop because that cycle becomes a boundary in the larger complex.
Retain the maps between adjacent homology spaces
The list of Betti numbers alone cannot determine a zigzag barcode. Maps identify which classes continue through an inclusion. Two sequences can have equal dimensions at every index yet have different surviving intervals when their linear maps differ.
After cycle representatives are mapped into the adjacent complex, reduce them modulo target boundaries and express them in the selected homology basis. Changing these internal bases changes matrix entries but does not change the multiplicities of interval summands.
Follow the filled and unfilled triangle
At the first index the triangular boundary has one loop. Filling its interior makes H1 zero at the middle index. The backward inclusion from the last boundary into the filled triangle also sends its loop to zero.
The two endpoint loops therefore occupy separate one-index intervals. Joining them into [0,2] would incorrectly assert a nonzero loop through the filled stage. The connected component does survive every stage and contributes the full H0 interval.
Read closed index intervals and multiplicities
The endpoints are positions in the entered sequence, starting with zero in this calculator. An interval [b,e] contributes one vector-space dimension at every index from b through e. Repeated intervals represent distinct independent classes with identical lifespans.
A class can be present at only one index and still carry information in a zigzag. Such intervals are not automatically discarded as zero-length distance bars: there is no continuous distance parameter here, and an isolated observation stage is a real part of the sequence. The barcode uses complex indices, not distances or physical time. An interval ending at index zero and another beginning at index two are distinct classes even if their representative cycles use the same vertex labels. In the default a filled triangle kills the loop at the middle complex, and deleting the face later creates a new interval. Matching only Betti numbers would miss how classes continue across arrows. The algorithm instead constructs induced homology maps, computes limit-to-colimit ranks on every contiguous subsequence and recovers interval multiplicities by finite differences. Rebuilding the Betti numbers from those intervals provides an additional internal certificate.
Check the decomposition against the input representation
At every index, count the reported bars covering that index and compare the result with the computed Betti number. For every arrow, the bars covering both endpoints predict its rank. These identities catch many indexing and direction mistakes.
These checks validate the finite algebraic representation within the declared size limits. They do not establish statistical significance, recover missing simplices from a physical dataset, or distinguish sampling noise from a meaningful feature. Those questions require additional modeling assumptions.
A few questions, answered
Can an arrow point backward?
Yes. A backward arrow is an inclusion from the right-hand complex into the left-hand complex. The map is computed in that direction; it is not an inverse map.
Are endpoints distances or sequence indices?
They are integer positions in the supplied sequence. Any conversion into physical time or distance must come from separate metadata.
Why is a reappearing loop a different interval?
The intermediate homology space may be zero or the maps may break continuation. Reappearance alone does not identify the later class with the earlier interval.
Does the barcode prove statistical significance?
No. This is an exact finite-field decomposition of the supplied complexes and maps. Statistical confidence needs a separate sampling and noise model.