Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
rustworkx.in_degree_centrality#
- in_degree_centrality(graph, /)#
Compute the in-degree centrality for nodes in a PyDiGraph.
In-degree centrality assigns an importance score based on the number of incoming edges to each node.
- Parameters:
graph (PyDiGraph) – The input graph
- Returns:
a read-only dict-like object whose keys are the node indices and values are the centrality score for each node.
- Return type: