Graph utilitiesΒΆ
Convert a NetworkX graph to GeoDataFrames (edges and/or nodes). |
|
Convert a GeoDataFrame of LineStrings into a directed graph (nx.DiGraph). |
|
Clip a NetworkX graph by a polygon and return the induced subgraph. |
|
Keep only the largest strongly connected component of a directed graph. |
|
Write a NetworkX graph to GML, coercing node coordinates to plain floats. |
|
Read a GML file into a NetworkX graph and cast edge geometry from WKT strings to shapely. |
|
Reproject node coordinates (x, y) and edge geometries to a new CRS (in place). |