@graphty/graphty-element / session / Caveats
Interface: Caveats ​
Defined in: graphty-element/src/session/runs/types.ts:209
What qualifies a run's numbers.
Caveats travel with the result rather than sitting in a graph-level bag of facts, because two runs of the same algorithm on the same graph can differ in every one of them. A consumer comparing a value against a saved one, or ranking two nodes whose scores are within a rounding error, reads the qualification from the same object that carries the value.
precision is the clearest case: a run on an accelerator computes in single precision and reports "f32", a run on the CPU path reports "f64", and without it "why does this number disagree with the one I had a minute ago" has no answer.
Properties ​
componentScope? ​
readonlyoptionalcomponentScope?:"all"|"largest"
Defined in: graphty-element/src/session/runs/types.ts:221
Whether the run covered every component or only the largest.
converged? ​
readonlyoptionalconverged?:boolean
Defined in: graphty-element/src/session/runs/types.ts:217
Whether an iterative algorithm reached its convergence threshold.
direction ​
readonlydirection:RunDirection
Defined in: graphty-element/src/session/runs/types.ts:227
How edge direction was treated.
exact ​
readonlyexact:boolean
Defined in: graphty-element/src/session/runs/types.ts:211
Whether the numbers are exact, or an approximation the element chose above the cost cap.
filterScope? ​
readonlyoptionalfilterScope?:boolean
Defined in: graphty-element/src/session/runs/types.ts:223
Whether a visibility filter narrowed what the run looked at.
iterations? ​
readonlyoptionaliterations?:number
Defined in: graphty-element/src/session/runs/types.ts:219
How many iterations it took.
method ​
readonlymethod:string
Defined in: graphty-element/src/session/runs/types.ts:233
Which method computed them, such as "dijkstra" or "brandes-sampled".
notes ​
readonlynotes: readonlystring[]
Defined in: graphty-element/src/session/runs/types.ts:241
Anything else a reader should know, in sentences.
partialReason? ​
readonlyoptionalpartialReason?:string
Defined in: graphty-element/src/session/runs/types.ts:239
Why a run stopped before it finished, when it did. Present exactly when the run resolved with partial set, whatever stopped it: a time box, a cancellation, or the algorithm's own iteration cap.
precision ​
readonlyprecision:Precision
Defined in: graphty-element/src/session/runs/types.ts:231
The arithmetic that produced these numbers.
sampleSize? ​
readonlyoptionalsampleSize?:number
Defined in: graphty-element/src/session/runs/types.ts:213
How many elements the approximation sampled. Present only when exact is false.
seed? ​
readonlyoptionalseed?:number|null
Defined in: graphty-element/src/session/runs/types.ts:215
The seed a sampled or randomised run used, so it can be reproduced.
weight? ​
readonlyoptionalweight?:WeightMeaning|null
Defined in: graphty-element/src/session/runs/types.ts:229
What the edge weight was taken to mean, or null when the run ignored weights.
windowScope? ​
readonlyoptionalwindowScope?:boolean
Defined in: graphty-element/src/session/runs/types.ts:225
Whether a time window narrowed what the run looked at.