itacart.topology.cell_to_edges
- itacart.topology.cell_to_edges(cell)[source]
Every directed edge leaving a cell.
Four for a cell whose four cardinal steps all land, which is every cell outside the geometric exception set. The paper’s count of three for a prime-meridian triangle is wrong on both halves: the triangle has three sides but four edge neighbours, because its base is divided between the two quadrants.
- Parameters:
cell (
str) – Compositional index string.- Return type:
- Returns:
An edge list for a single cell, or a positionally aligned list of lists.
- Raises:
DomainError – If the cell is in the geometric exception set, where the edge set is not recoverable from the lexical step alone.
NonExistentCellError – If any cell of the index names no cell. The predicate is the arbiter and the contract ends there: a spelling it denies is refused rather than answered for the cell it would otherwise fold onto.