MultiGraph ↔ NumPy adjacency arrays: what aggregation policy prevents silent semantic loss during conversion?
When exporting a NetworkX MultiGraph to a dense NumPy adjacency matrix via to_numpy_array , parallel edges between the same node pair collapse into a single scalar cell. The multigraph_weight parameter accepts a callable—such as sum , min , max , or a custom function—to control that combination, but the default sum conflates two different conventions: an unw