iduedu.streets_per_node

iduedu.streets_per_node(urban_graph, *, edge_types=None)[source]

Number of streets that meet at every node.

A street is counted once whatever its direction and however many copies of it the graph stores; a loop counts twice. One street marks a dead end, three or more an intersection.

Parameters:
  • urban_graph (UrbanGraph) – The graph.

  • edge_types (Optional[Iterable[str]]) – Count only edges whose type is one of these (for example ["walk"] in an intermodal graph).

Return type:

Series

Returns:

Series indexed like nodes_gdf, named streets.