itacart.hierarchy.common_ancestor
- itacart.hierarchy.common_ancestor(index)[source]
Deepest cell containing every terminal cell of the index.
Underlies
compact_cells()anditacart.index.compose(), and is independently useful for finding the grouping node of a vertex set.- Parameters:
index (
str) – Compositional index string, or a composed list of cells.- Return type:
- Returns:
The deepest common ancestor index. Returns the quadrant when the cells share only that.
- Raises:
DomainError – If the cells span more than one quadrant.