Skip to content

@graphty/graphty-element / catalog / algorithmByKey

Function: algorithmByKey() ​

algorithmByKey(key): BuiltInAlgorithmDescriptor | undefined

Defined in: graphty-element/src/catalog/algorithms.ts:1129

Find a built-in algorithm by its 2.0 key.

Parameters ​

key ​

string

The key to look for, such as "shortest-path".

Returns ​

BuiltInAlgorithmDescriptor | undefined

The descriptor, or undefined when no built-in carries that key.