NetworkX

Previous topic

networkx.degree_centrality

Next topic

networkx.out_degree_centrality

networkx.in_degree_centrality

in_degree_centrality(G)

Compute the in-degree centrality for nodes.

The in-degree centrality for a node v is the fraction of nodes its incoming edges are connected to.

Parameters:

G : graph

A NetworkX graph

Returns:

nodes : dictionary

Dictionary of nodes with in-degree centrality as values.

See also

degree_centrality, out_degree_centrality, Notes, -----, The, possible, For, be, are