glejeune / node-graphviz

Node.js interface to the GraphViz graphing tool
http://algorithmique.net
MIT License
197 stars 58 forks source link

Remove node #19

Closed rogelio-meza-t closed 5 years ago

rogelio-meza-t commented 10 years ago

I added a new feature (remove a node) to the public api:

graph.removeNode(id [, true])

the first param is the node ID. The second one is a bolean (true, not truthy) that enables to removes the edges to and form the node. I added a simple wrking example with outputs to see the diferences between graphs