Skip to content

ternaus/connected-components-js

Repository files navigation

Library to work with connected components of the undirected graph

Installation

npm install connected-components-js
const g = new Graph();
g.addEdge("a", "b")
g.addEdges([["a", "d"], ["e", "f"], ["k", "l"]])

g.addNode("c")
g.addNodes(["t", "f", "m"])

const components = g.computeComponents()

About

Operations with connected components in javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published