@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? ​
readonlyoptionalharmonic?:boolean
Defined in: indexed/accelerator.ts:238
sources? ​
readonlyoptionalsources?: readonlynumber[]
Defined in: indexed/accelerator.ts:237
weighted? ​
readonlyoptionalweighted?:boolean
Defined in: indexed/accelerator.ts:236