metrics.edges#
Classes#
Handles edge-level metric calculations. |
Module Contents#
- class metrics.edges.EdgeMetrics[source]#
Handles edge-level metric calculations.
- static extract_edge_metrics(dpg_model, nodes_list)[source]#
Extracts metrics from the edges of a DPG model, including: - Edge Load Centrality - Trophic Differences
- Parameters:
dpg_model – A NetworkX graph representing the DPG.
nodes_list – List of (node_id, label) tuples.
- Returns:
A pandas DataFrame containing the metrics for each edge in the DPG.
- Return type:
df