selection.selectAll
selectAll(): Promise<void>Select all nodes in the graph, replacing the current node selection.
Not undoable. Emits "selection:changed".
Returns: Promise<void>
Example
await api.selection.selectAll();
return api.selection.getSelectedNodeIds().length;