Skip to content

@graphty/graphty-element / extend / nodeMetricFields

Function: nodeMetricFields() ​

nodeMetricFields(value): readonly FieldDescriptor[]

Defined in: graphty-element/src/algorithms/metrics/fields.ts:104

Build the fields every node-metric result publishes.

The per-element trio and the seven graph-level statistics are what the shape promises, and an algorithm that measures something extra appends its own fields after these rather than replacing any of them.

Parameters ​

value ​

MetricValueName

What this metric's primary value is called.

Returns ​

readonly FieldDescriptor[]

The uniform field list for the node-metric shape.