Open hillar opened 3 years ago
Interesting. What version of the ngraph.graph
are you using? I have changed that package but haven't published to npm yet, so that the links storage is different there (moved from array to set).
"ngraph.graph": "git+https://github.com/anvaka/ngraph.graph.git#c98822ccc4d9ffb7c1ed5d834a640a19f3a57531",
defaultNodeMass returns NaN and Node mass should be a number is thrown
https://github.com/anvaka/ngraph.forcelayout/blob/f1c47b57035869750a9bfbe9336dee63eba1e90d/index.js#L388
seems that links does not have length but size, as newer graph.getLinks does not return array anymore
as a temporary workaround nodeMass function in physicsSettings helps..