Calculates the betweenness centrality for each node in the network. Betweenness centrality is a measure of the number of times a node acts as a bridge along the shortest path between two other nodes.

directed
boolean

Whether the links are directed or not.

cutoff
[number, null]

The maximum path length to consider when calculating the betweenness. If cutoff is zero or negative then there is no such limit.