graph-toolkit
Preparing search index...
traversal/src
connectedComponents
Function connectedComponents
connectedComponents
(
graph
:
Graph
)
:
readonly
(
readonly
VertexId
[]
)
[]
Connected components of an undirected graph; throws
GraphError
if directed. $O(V + E)$.
Parameters
graph
:
Graph
Returns
readonly
(
readonly
VertexId
[]
)
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
graph-toolkit
Loading...
Connected components of an undirected graph; throws GraphError if directed. $O(V + E)$.