I am using Postgres 9.5 and PostGIS. I have a table with a
geometry field. This table has about 200 rows, in each of which the
geometry field contains a Polygon.
I would now like to derive an undirected network graph from these rows, in which row is a node, and there is an edge between them if they share a boundary.
Is it possible to derive this somehow?
I also have the data in KML form, if that helps, and I think NetworkX can accept shapefiles.