nocad.measures.closeness_centrality#
- nocad.measures.closeness_centrality(adj)[source]#
Out-, in- and total closeness of every node (MATLAB
closenessCentrality).\[C^{out}_i=\frac{|R^{out}_i|}{N-1}\cdot\frac{|R^{out}_i|}{\sum_{j\in R^{out}_i}\ell_{ij}},\]with \(R^{out}_i\) the nodes reachable from \(x_i\); in-closeness uses the nodes that reach \(x_i\), and the total closeness is their sum.