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 whosetypeis one of these (for example["walk"]in an intermodal graph).
- Return type:
- Returns:
Series indexed like
nodes_gdf, namedstreets.