cellGraph -- Graph associated with a collection of cells
Usage:
cellGraph Q
Inputs:
Q, a collection of cells
Outputs:
the graph whose vertices correspond to cells and edges to adjacency relations
Description
Constructs the adjacency graph $G$ of a collection of cells, where the vertices of $G$ are the cells and two vertices of $G$ are connected by an edge in $G$ if the corresponding two cells share a common side.