nodes

nodes.getAll

getAll(): NodeData[]

Return a shallow copy of all nodes currently in the graph.

Not undoable (read-only). Does not emit any event.

Returns: NodeData[]

Example

const nodes = api.nodes.getAll();
return nodes.map(n => n.id);