You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate the path length of a graph (BU, WU graphs). Calculate the In and Out - path length of the graph in the case of BD and WD graphs.
The path length is simply the average of the nodal path lengths for all nodes in the graph. The average can be performed in three ways:
Simple average
within connected subgraphs
Harmonic mean
Once these are implemented, we can discuss about additional ways to perform the averaging procedure. Also, if a graph is disconnected, path length calculated as 1) returns NaN. Based on what we need, we can have additional ways to deal with it (return 0, output warning, etc..).
The text was updated successfully, but these errors were encountered:
The average would be taken only between the nodes that have at least 1 connection in the network (so that the path length is a real number and not a nan). I think nanmean is the function (although I am not sure if that function is part of the core matlab or comes with a toolbox)
Calculate the path length of a graph (BU, WU graphs). Calculate the In and Out - path length of the graph in the case of BD and WD graphs.
The path length is simply the average of the nodal path lengths for all nodes in the graph. The average can be performed in three ways:
Once these are implemented, we can discuss about additional ways to perform the averaging procedure. Also, if a graph is disconnected, path length calculated as 1) returns NaN. Based on what we need, we can have additional ways to deal with it (return 0, output warning, etc..).
The text was updated successfully, but these errors were encountered: