tightbinder.topology.count_crossings#
- count_crossings(wcc, midpoint, next_midpoint)[source]#
Routine to compute the number of WCC that lie between one midpoint and the next one. Used to determine the Z2 invariant.
- Parameters:
wcc (
ndarray) – Array with WCCs for one closed path.midpoints – Value of midpoint of the current WCC array.
next_midpoints – Value of midpoint of the consecutive array of WCCs.
- Return type:
- Returns:
Number of WCCs crossed when going from the present midpoint to the next one.