Skip to content

@graphty/algorithms / index / ClosenessAcceleratorOptions

Interface: ClosenessAcceleratorOptions ​

Defined in: indexed/accelerator.ts:235

Closeness options as the accelerator sees them: weighted always explicit, and sources as node INDICES -- present for a sampled run, absent for the exact one from every node. With sources the member scores every node from its distances to those sources, as the CPU port's sampled closeness does (duplicates run twice). harmonic asks for the sum of 1 / distance instead of 1 / sum(distance); the dispatcher sends it only to an accelerator that declares harmonicCloseness, and only for an exact run.

Properties ​

harmonic? ​

readonly optional harmonic?: boolean

Defined in: indexed/accelerator.ts:238


sources? ​

readonly optional sources?: readonly number[]

Defined in: indexed/accelerator.ts:237


weighted? ​

readonly optional weighted?: boolean

Defined in: indexed/accelerator.ts:236