momepy.network_false_nodes(gdf, tolerance=0.1, precision=3)[source]

Check topology of street network and eliminate nodes of degree 2 by joining affected edges. Attributes are not preserved.

gdf : GeoDataFrame, GeoSeries

GeoDataFrame or GeoSeries containg edge representation of street network.

tolerance : float

nodes wihtin tolearance are seen as identical (floating point precision fix)

precision : int

rounding parameter in estimating uniqueness of two points based on their coordinates

gdf : GeoDataFrame, GeoSeries