geometries are not
graphs are
a data structure that consists of a set of objects called nodes and a set of connections between them called edges
\[ \begin{array}{cccc} 0 & w_{12} & \dots & w_{1N} \\ w_{21} & \ddots & w_{ij} & \vdots \\ \vdots & w_{ji} & 0 & \vdots \\ w_{N1} & \dots & \dots & 0 \end{array} \]
\[ \begin{array}{cccc} 0 & 1 & 0 & 0 \\ 1 & 0 & 1 & 1 \\ 1 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \end{array} \]
mathematical structure capturing spatial relationships
it depends
from libpysal import graph