The Dowker complex of a relation R: L x W -> [0, Infinity] (vertices are the rows). dual = true gives the complex on the other side (the transpose relation), which Dowker duality makes homotopy equivalent.
The same diagram with every representative moved to the other side of the relation: from the rows to the columns, or with dual = true (for a diagram computed with dual = true) from the columns to the rows. The bars are the same. A cycle goes by DowkerGeometry.lift to a cycle of the other side's complex at the bar's birth that represents the same bar there; a cocycle goes by DowkerGeometry.liftCocycle to a cocycle of the other side's complex below the bar's death, again of the same bar. Build the complex on the smaller side and read the representatives on the side you want:
The same diagram with every representative moved to the other side of the relation: from the rows to the columns, or with dual = true (for a diagram computed with dual = true) from the columns to the rows. The bars are the same. A cycle goes by DowkerGeometry.lift to a cycle of the other side's complex at the bar's birth that represents the same bar there; a cocycle goes by DowkerGeometry.liftCocycle to a cocycle of the other side's complex below the bar's death, again of the same bar. Build the complex on the smaller side and read the representatives on the side you want:
val geometry = WitnessGeometry(metricSpace, landmarks) // landmarks (rows) to every point (columns)
val diagram = Persistence(Dowker(geometry.D, maxDimension = 1))
val onPoints = Dowker.lift(diagram, geometry.D) // representatives on the points' own numbers
val cocycles = Persistence(Dowker(geometry.D, maxDimension = 1), representatives = Representatives.Cocycles)
CircularCoordinates(Dowker.lift(cocycles, geometry.D), Dowker(geometry.D, maxDimension = 1, dual = true))
The last line gives every point a circle coordinate from a computation on the landmarks: CircularCoordinates takes the lifted diagram with the complex on the points. A lifted cocycle is a cochain on every simplex of its dimension on the other side below the bar's death (below the diagram's last value, for a bar that does not die), which for many points and degree 2 is large. The lifted bars record no birth and death cells: those are cells of the side the diagram was computed on.