Skip to content

@eightkk/vue-weave / core / searchGraphNodes

Function: searchGraphNodes() ​

searchGraphNodes<N>(nodes, query, options?): N[]

Defined in: src/core/graphAlgorithms.ts:153

Case-insensitive substring search over node id and label. An empty query matches every node. Returns a new array in input order.

Type Parameters ​

N ​

N extends IdentifiedNode

Parameters ​

nodes ​

readonly N[]

query ​

string

options? ​

GraphSearchOptions = {}

Returns ​

N[]

Released under the MIT License.