fkling / JSNetworkX

Build, process and analyze graphs in JavaScript (port of NetworkX)
https://felix-kling.de/jsnetworkx/
Other
761 stars 184 forks source link

Feedback wanted: Iterables, especially objects #31

Closed fkling closed 9 years ago

fkling commented 9 years ago

Currently the helper functions to iterate over "collections" iterate over the property names of an object, not its values. That's how it is in Python as well. I'm wondering if this is expected behavior or surprising. We could also iterate over the property values instead.

Maybe we should even distinguish between iterables with key => value and index => value, i.e. KeyedIterable and IndexIterable.

fkling commented 9 years ago

I removed support for objects as "node lists".