1.0.3 • Published 2 years ago

immutable-graph v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

This package is an immutable graph library built on top of Immutable.js. As such, it leverages the performance of its library.

You can instantiate an instance of this class by using the new keyword, and there are several functions that operate on the graph (e.g. removing a vertex from the graph, removing an edge, etc.). Each function operating on the graph does not modify the internal state but rather returns a new instance of the graph with the desired change.

Note that although the returned graph shares data with the existing graph object, any changes to it (by virtue of being an immutable data structure) will not affect the original graph.