Modules / topology
Computational Topology
Knots, surfaces and complexes, homology, duality, Morse theory and persistent homology, computed and shown in 3D.
- Version
- 0.3.0 in progress
- Follows
- Follows Edelsbrunner & Harer, Computational Topology, Chapters I–VIII
- Level
- Postgraduate, research
- Needs
- Lab4IQM 1.7 or newer, Blender 4.2.0 or newer
- Commands
- 31

Try these
Each line is a command from the module's own examples; type it in the
Lab4IQM console after import topology.
I.1 Union-find: components of growing balls
unionfind("twocircles(60, 0.03)", r=0.12); view2d()I.2 A Jordan curve cut into triangles
polygon(comb); view2d()I.2 Winding numbers of the pentagram
polygon(star, at=((0, 0), (0, 0.6), (0.95, 0.9))); view2d()I.3 The trefoil knot
knot(trefoil)I.3 The figure-eight knot and its diagram
knot(figure8, diagram=true); view2d()I.3 A torus knot T(3,5)
knot(torus, p=3, q=5)I.3 The Hopf link
link(hopf)I.3 The Borromean rings
link(borromean)Commands
help(topology) in the console lists them with their options.
unionfindpolygonknotlinktuttesurfaceintersectionssimplifycomplexripscechdelaunayalphacollapsehomologyspernercohomologypoincarepairingalexanderhessiancriticalmorsesmalereebpersistenceelderextendedspectralvineyardbottleneckcrofton