betweenness

Calculate betweenness centrality of vertices in a graph, using the algorithm developed by Ulrik Brandes (2001) J. Math. Sociol. 25(2): 163-177.

The optional function parameter ignore allows the user to indicate individual vertices to ignore in the calculation.

  1. auto ref betweenness(Graph g, bool[] ignore)
    ref
    betweenness
    (
    T = double
    Graph
    )
    (
    ref Graph g
    ,
    bool[] ignore = null
    )
    if (
    isFloatingPoint!T &&
    isGraph!Graph
    )
  2. auto ref betweenness(Graph g, T[] centrality, bool[] ignore)

Meta