neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
694 stars 348 forks source link

Feature Request: Offline graph simulation #283

Open chris-cheshire opened 8 years ago

chris-cheshire commented 8 years ago

For very large graphs could there be an option where the graph ticks are calculated without moving the nodes? The final node positions only shown shown when the alpha value has cooled enough the graph is stable. This gives large performance improvements when calculating large graphs and reduces the time to generate the graph considerably.

oskarhane commented 8 years ago

I agree, this would be a great feature. I'm not sure if this is possible with d3 though, but I'll add it to our backlog so we can have a look at it.

Thanks.

cgreene commented 8 years ago

If you're willing to simulate (edit:) a fixed number of times, this seems like it's feasible in d3:

http://bl.ocks.org/mbostock/1667139

oskarhane commented 8 years ago

Cool, thanks for the link. That looks useful.

chris-cheshire commented 8 years ago

It worked in the earlier version of D3, I haven't looked at the new version yet. When you called tick() you used to have to update the node positions in a callback. If you didn't update the positions and just kept calling tick until the alpha value reached the threshold, then you just updated the final node positions.