@graphty/algorithms / index / PathCountOverflowError
Class: PathCountOverflowError ​
Defined in: errors.ts:166
Thrown when an accelerator reports that the betweenness it computed is wrong because some pair of nodes has more shortest paths than its counters can hold. The counts overflowed partway through the run, so every score that depends on them is wrong, and none is returned.
The CPU functions count in double precision and never throw this. Run the call without the accelerator (the CPU function of the same name) to get the scores.
Extends ​
Error
Constructors ​
Constructor ​
new PathCountOverflowError(
algorithm):PathCountOverflowError
Defined in: errors.ts:174
Builds the error and its message.
Parameters ​
algorithm ​
string
The function whose counts overflowed, e.g. "betweennessCentrality"
Returns ​
PathCountOverflowError
Overrides ​
Error.constructor
Properties ​
algorithm ​
readonlyalgorithm:string
Defined in: errors.ts:174
The function whose counts overflowed, e.g. "betweennessCentrality"
code ​
readonlycode:AlgorithmErrorCode="E_PATH_COUNT_OVERFLOW"
Defined in: errors.ts:168
name ​
readonlyname:"PathCountOverflowError"="PathCountOverflowError"
Defined in: errors.ts:167
Overrides ​
Error.name