Skip to content

Function: connectedComponents() ​

ts
function connectedComponents(graph, options?): Components;

Connected components, ignoring the direction of links (the weak components of a directed graph). A node without links is a component of its own.

Parameters ​

ParameterType
graphGraphLike
optionsMetricOptions

Returns ​

Components

Released under the MIT License.