@graphty/graphty-element / extend / AlgorithmOutput
Interface: AlgorithmOutput ​
Defined in: graphty-element/src/algorithms/results/types.ts:57
Everything one run of an algorithm produced.
Returned rather than written through side effects, so a run is a value: it can be handed to a caller, posted to a worker, checked against the catalogue, or thrown away when the run that produced it was cancelled.
Properties ​
caveats ​
readonlycaveats:Caveats
Defined in: graphty-element/src/algorithms/results/types.ts:72
What qualifies these numbers, including which method produced them.
edges? ​
readonlyoptionaledges?: readonlyResultElementValues<string>[]
Defined in: graphty-element/src/algorithms/results/types.ts:68
What the run published per edge, keyed by the element-assigned Edge.id.
fields ​
readonlyfields: readonlyResultFieldSpec[]
Defined in: graphty-element/src/algorithms/results/types.ts:64
The fields this run filled. Fewer than the catalogue declares whenever a parameter changed what there was to publish.
graph? ​
readonlyoptionalgraph?:Readonly<Record<string,unknown>>
Defined in: graphty-element/src/algorithms/results/types.ts:70
What the run published for the graph as a whole.
nodes? ​
readonlyoptionalnodes?: readonlyResultElementValues<NodeId>[]
Defined in: graphty-element/src/algorithms/results/types.ts:66
What the run published per node.
shape ​
readonlyshape:"node-metric"|"edge-metric"|"community"|"layered-grouping"|"category-table"|"path"|"node-set"|"edge-set"|"pair-list"|"temporal"|"fact"
Defined in: graphty-element/src/algorithms/results/types.ts:59
The result shape, which fixes the field names below.