iduedu.clip_urban_graph¶
- iduedu.clip_urban_graph(graph_gdf, polygon)[source]¶
Clip graph nodes by geometry and keep only edges with retained endpoints.
polygonis expected to be in the same CRS asgraph_gdf. Node ids are preserved; callrelabel_urban_graph()if dense labels are needed.- Return type:
- Parameters:
graph_gdf (UrbanGraph)
polygon (BaseGeometry)