anvaka / ngraph.graph

Graph data structure in JavaScript
BSD 3-Clause "New" or "Revised" License
520 stars 66 forks source link

inconsistent "replacing" behaviour between `addNode` and `addLink` #33

Closed nemosmithasf closed 3 years ago

nemosmithasf commented 4 years ago

It seems that addNode will overwrite and replace any existing nodes, addLink however does not do this.

Perhaps you can consider implementing this for the sake of consistency between the methods.

anvaka commented 3 years ago

This should be fixed in the repository and will be published as v20. See the changelog for details.