Skip to content

Documentation unclear on normalization of betweenness when a cutoff is set #1489

@DOSull

Description

@DOSull

What happens, and what did you expect instead?

The betweenness documentation states under the normalized argument that

If TRUE, then the results are normalized by the number of ordered or unordered vertex pairs in directed and undirected graphs, respectively. In an undirected graph,

$$B^n=\frac{2B}{(n-1)(n-2)}$$

where $B^n$ is the normalized, $B$ the raw betweenness, and $n$ is the number of vertices in the graph.

I assume this is a true statement of what happens, but I am unsure that it is correct behaviour.

First the number of paths in a directed graph is twice that in an undirected graph so that the factor of 2 should probably be dropped. Second, and the issue that got me thinking about this is that it is entirely unclear what the normalization factor should be if there is a cutoff in the betweenness calculation, since the number of paths considered in that case is not trivially predictable from the size of the graph.

I originally (wrongly) posted in this issue on the igraph c repo, where @szhorvat suggests.

In any case, this is not a bug, more a request for more explicit information in the documentation.

To reproduce

NA

System information

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions