Closed nponiros closed 8 years ago
Add optional data parameter for the addNode method. If data is not given the node name is used as data.
Add methods setNodeData and getNodeData to manipulate the data associated with a node.
Update the hasNode method to be able to cope with falsy node data.
Add tests for new functionality.
Update README to document the new functionality.
Fixes #12
Just one minor comment - I'll merge it after it's fixed 😄
Published new version to npm - 0.5.0
Thanks for the merge and the new release.
Add optional data parameter for the addNode method. If data is not given the node name is used as data.
Add methods setNodeData and getNodeData to manipulate the data associated with a node.
Update the hasNode method to be able to cope with falsy node data.
Add tests for new functionality.
Update README to document the new functionality.
Fixes #12