@not_implemented_for('undirected')
def in_degree_centrality(G):
    centrality = {}
    s = 1.0/(len(G)-1.0)
    centrality = {n: d*s for n, d in G.in_degree()}
    return centrality
Compute the in-degree centrality for nodes.
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/centrality/degree_alg.py/in_degree_centrality