graph.js
graph.js copied to clipboard
consistency in functional and in-place methods
Right now, there are some methods that create a new graph based on an existing graph, and others that transform an existing graph in-place. For example:
- .transitiveReduction creates a new graph, and
- .contractPaths transforms a graph in-place
There should be some consistency there. Perhaps there should be two versions of such algorithms, properly named. Suggestions welcome.