// Connected components within this collection (undirected), each as a collection of the reached nodes plus the collection's edges internal to that component
eles.components(root?: Collection | null): Collection<NodeData, EdgeData>[]Connected components within this collection (undirected), each as a collection of the reached nodes plus the collection's edges internal to that component.
| Name | Description |
|---|---|
root: Collection | null? | restricts the seed nodes; omit to seed from every node |
Returns
Collection<NodeData, EdgeData>[]one collection per component
Also spelled eles.componentsOf.