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
(Ignoring infinite values in the distance matrix is only one among several options. It is the only one available through networkx, but the igraph implementation could be made to support additional options.)
As with my disparity filter submission, just let me know if you are interested, and I'll submit a proper PR.
Related: the closeness vitality of vertex x in graph g compares the Wiener index of g to the Wiener index of that same graph after vertex x has been removed. The Wiener index (which networkx seems to have misspelt as 'Weiner') would be trivial to implement in igraph:
wiener_index<-function(g) { sum(distances(g)) }
Another strategy is to compare average path lengths instead of Wiener indexes, which is sometimes called a 'vulnerability' measure:
Closeness vitality is a measure proposed in Brandes and Erlebach (2005), Section 3.6.2 (see screenshot below). It has been implemented in Python, in
networkx
.The same function requires only a few lines of code with
igraph
:(Ignoring infinite values in the distance matrix is only one among several options. It is the only one available through
networkx
, but theigraph
implementation could be made to support additional options.)As with my disparity filter submission, just let me know if you are interested, and I'll submit a proper PR.
Related: the closeness vitality of vertex
x
in graphg
compares the Wiener index ofg
to the Wiener index of that same graph after vertexx
has been removed. The Wiener index (whichnetworkx
seems to have misspelt as 'Weiner') would be trivial to implement inigraph
:Another strategy is to compare average path lengths instead of Wiener indexes, which is sometimes called a 'vulnerability' measure:
(The function returns
NA
if the vertex for which vulnerability is being computed is a cut-vertex or a bridge.)The text was updated successfully, but these errors were encountered: