Skip to content

@graphty/graphty-element / catalog / algorithmByLegacyKey

Function: algorithmByLegacyKey() ​

algorithmByLegacyKey(legacyKey): LegacyAlgorithmMapping | undefined

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

Find what a 1.10 algorithm key became, for a migration tool or a compatibility shim.

Parameters ​

legacyKey ​

string

The 1.10 key, such as "scc" or "floyd-warshall", with no namespace.

Returns ​

LegacyAlgorithmMapping | undefined

The descriptor that replaced it and the parameters to run it with, or undefined when the key was never registered.