itacart.topology.directed_edge_to_cells

itacart.topology.directed_edge_to_cells(edge)[source]

Recover the origin and destination of a directed edge.

Parameters:

edge (str) – Directed edge identifier, or several separated by commas.

Return type:

tuple[str, str] | list[tuple[str, str]]

Returns:

(origin, destination) for a single edge, or a positionally aligned list.

Raises:

InvalidIndexError – If the identifier does not hold exactly two cells.