Enumerate all connected components in an undirected graph.
var cc =var adjList =214 533console
0 1 2 3 4 5
npm install connected-components
Returns a list of connected components for the given graph.
adjacencyListis an adjacency list representation of a graph
Returns A list of connected components in the graph
(c) 2014 Mikola Lysenko. MIT License