CellNetwork.edges

CellNetwork.edges(data=False)[source]

Iterate over the edges of the cell network.

Parameters:
databool, optional

If True, yield the edge attributes in addition to the edge identifiers.

Yields:
tuple[int, int] | tuple[tuple[int, int], dict[str, Any]]

If data is False, the next edge identifier (u, v). If data is True, the next edge identifier and its attributes as a ((u, v), attr) tuple.