build_geometry_network

sectionproperties.pre.geometry.build_geometry_network(lop: list[Polygon]) dict[int, set[int]][source]

Builds a geometry connectivity graph.

Returns a graph describing the connectivity of each polygon to each other polygon in lop. The keys are the indexes of the polygons in lop and the values are a set of indexes that the key is connected to.

Parameters:

lop (list[Polygon]) – List of Polygon

Returns:

A dictionary describing the connectivity graph of the polygons

Return type:

dict[int, set[int]]