@graphty/graphty-element / extend / setFieldSpecs
Function: setFieldSpecs() ​
setFieldSpecs(
kind,headline): readonlyResultFieldSpec[]
Defined in: graphty-element/src/algorithms/results/fields.ts:83
The fields a set publishes: membership per element, the count, and the one number the set is actually read for.
Parameters ​
kind ​
"node" | "edge"
Whether the set is a set of nodes or of edges.
headline ​
Omit<ResultFieldSpec, "kind">
The graph-level scalar of the algorithm's own naming.
Returns ​
readonly ResultFieldSpec[]
The field list.