src/focalLayout.worker.js
// Return the node-repulsion LinLog energy (only consider edges and node pairs between groups)
Return the node-repulsion LinLog energy (only consider edges and node pairs between groups)
Return the node - repulsion LinLog energy ( only consider edges and node pairs between groups )
function evaluateLayout(coords, nodesByHop) {
    let energy = 0;
    for (let i = 0; i < nodesByHop.length - 1; i++) {
        energy += computeEnergyBetweenHop(coords, nodesByHop[i], nodesByHop[i + 1]);
    }
    return energy;
}
function evaluateLayout ( coords , nodesByHop ) { let energy = 0 ; for ( let i = 0 ; i < nodesByHop . length - 1 ; i ++ ) { energy += computeEnergyBetweenHop ( coords , nodesByHop [ i ] , nodesByHop [ i + 1 ] ) ; } return energy ; }
Return the node-repulsion LinLog energy (only consider edges and node pairs between groups)
Return the node - repulsion LinLog energy ( only consider edges and node pairs between groups )