Skip to content

@graphty/algorithms / index / ClosenessResult

Interface: ClosenessResult ​

Defined in: indexed/closeness.ts:50

Closeness scores with the number of sources they were computed from.

Extends ​

Properties ​

converged ​

readonly converged: true

Defined in: indexed/betweenness.ts:57

Always true: nothing here iterates to a tolerance.

Inherited from ​

ScoresResult.converged


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


sourcesUsed ​

readonly sourcesUsed: number

Defined in: indexed/closeness.ts:52

How many sources were run: nodeCount for the exact score, else the sample's length (duplicates counted).