selection

selection.selectNeighbors

selectNeighbors(fromNodeIds: string[]): Promise<void>

Add the undirected neighbors (all adjacent nodes) of the given nodes to the current selection. Not undoable. Emits "selection:changed".

fromNodeIdsstring[]Node ids whose neighbors should be added to the selection.

Returns: Promise<void>