Skip to content

@graphty/algorithms / index / BetweennessResult

Interface: BetweennessResult ​

Defined in: indexed/betweenness.ts:63

Node betweenness scores and the scale they are in.

Extends ​

Properties ​

converged ​

readonly converged: true

Defined in: indexed/betweenness.ts:57

Always true: nothing here iterates to a tolerance.

Inherited from ​

ScoresResult.converged


divisor ​

readonly divisor: number

Defined in: indexed/betweenness.ts:70

What the summed ordered-pair counts were divided by: 2 on an undirected snapshot and 1 on a directed one (NetworkX's convention), or the normalized pair count. scores[v] * divisor is the number of ordered (source, target) pairs whose shortest paths pass through v, each split by its share of those paths -- the scale Cytoscape.js's betweennessCentrality reports.


iterations ​

readonly iterations: number

Defined in: indexed/betweenness.ts:55

The number of breadth-first searches or shortest-path searches run: one per source.

Inherited from ​

ScoresResult.iterations


scores ​

readonly scores: F64

Defined in: indexed/betweenness.ts:53

One score per node index.

Inherited from ​

ScoresResult.scores