Feature/networkx helpers - #91
Conversation
Directed or Undirected Multigraph object
Evaluate network type before networkx instantiation Get global metrics for nx object Go from multiple to single edges Notebook for demonstrations
|
@sablanchard I found this methods https://github.com/gboeing/osmnx/blob/main/osmnx/utils_graph.py#L318-L418 that are used to go from parallel to single edges. I'm proposing something similar here ... just sharing to add some conext to the proposal. |
|
Thank you for the detailed NetworkX proposal and demonstration, Federico. UDST has resumed active maintenance and reviewed this PR as part of the initial UrbanAccess triage. The proposed helpers remain potentially useful, but this PR targets We will first reconcile Tracked in #95. We are leaving the PR open for now and are not asking you to rework it until the baseline is established. |
@sablanchard, this PR includes:
ua_to_networkxmethod.get_node_relations_by_typeto get self-loop and multi-edges relations in theurbanaccess_nwobject (this pretends to help users to have a better understanding before networkx object instantiation)network_degree_statsto get sum and average node degree of the networkx object.from_parallel_to_single_edgesto go from multi to single edges.All of them are shown in the
networkx_helpersdemo notebook