Closed fcphysics closed 1 year ago
This problem extends to the effective_outdegrees
function, and probably others as well.
effective_indegrees
and effective_outdegrees
functions.The networkx function in_degree
or out_degree
is used also to compute the structural graph and state transition graph node degrees, but I don't know if these need to consider the edge weights.
Effectiveness is not used to compute the structural or STG node degrees, so those functions don't need to utilize the weight argument in their networkx functions for effectiveness.
When computing the degree of a weighted graph in Networkx, one needs to specify the weight attribute name. This is missing on lines 536 and 548.
Another possible solution (for the indegree) is to set get it from
node.effective_connectivity(norm=False)
.