devenbhooshan / graph.js

A liteweight javascript graph algorithms library.
MIT License
127 stars 42 forks source link

Detection by name not working #10

Open Berianu opened 9 years ago

Berianu commented 9 years ago

I suggest using this instead of that indexOf

var array = graph.nodes; var source = array.filter(function( obj ) { return obj.name == "apple"; });

Berianu commented 9 years ago

Also, node removal isn't working because of the same issue.

devenbhooshan commented 8 years ago

Can you send the pull request for the same ?