Skip to content

@graphty/graphty-element / catalog / isCostClass

Function: isCostClass() ​

isCostClass(value): value is "instant" | "iterative" | "heavy" | "cubic" | "unbounded"

Defined in: graphty-element/src/catalog/types.ts:1362

Tell whether a value is one of the cost classes.

Parameters ​

value ​

unknown

The value to test.

Returns ​

value is "instant" | "iterative" | "heavy" | "cubic" | "unbounded"

True when the value is a member of COST_CLASSES.