- group_out_degree_centrality(G, S)¶
Compute the group out-degree centrality for a group of nodes.
Group out-degree centrality of a group of nodes \(S\) is the fraction of non-group members connected to group members by outgoing edges.
A NetworkX graph.
- Slist or set
S is a group of nodes which belong to G, for which group in-degree centrality is to be calculated.
Group out-degree centrality of the group S.
If G is undirected.
If node(s) in S are not in G.
The number of nodes in the group must be a maximum of n - 1 where
nis the total number of nodes in the graph.
G.neighbors(i)gives nodes with an outward edge from i, in a DiGraph, so for group out-degree centrality, the graph itself is used.