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.out_degree_centrality#
- out_degree_centrality(graph, /)#
Compute the out-degree centrality for nodes in a PyDiGraph.
Out-degree centrality assigns an importance score based on the number of outgoing edges from 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: