(net)
return gdf_edges
Generate linestring gdf from dual network.
    Helper for nx_to_gdf.
Generate linestring gdf from dual network.
    Helper for nx_to_gdf.
Generate linestring gdf from dual network . Helper for nx_to_gdf .
def _dual_to_gdf(net):
    """
    Generate linestring gdf from dual network.
    Helper for nx_to_gdf.
    """
    starts, edge_data = zip(*net.nodes(data=True))
    gdf_edges = gpd.GeoDataFrame(list(edge_data))
    gdf_edges.crs = net.graph["crs"]
    return gdf_edges
def _dual_to_gdf ( net ) : starts , edge_data = zip ( * net . nodes ( data = True ) ) gdf_edges = gpd . GeoDataFrame ( list ( edge_data ) ) gdf_edges . crs = net . graph [ "crs" ] return gdf_edges