Environment info
All OSes, all browsers, and nodejs
Current (buggy) behaviour
The calculateGravityForces method runs all calculations even when the options.gravity is set to 0 (zero).
Desired behaviour
At the calculateGravityForces method start, there could be some check as
if (options.gravity === 0) {
return;
}
That would make the cose calculation faster in these cases.
Minimum steps to reproduce
- configure
cose gravity to 0 (zero)
- prepare some nodes and edges
- execute
cose