ush(edge.id);
            }
        }
        return results;
    }

    function getDeletedEdgeString() {
        var ids = getAllDeletedEdgeIDs();
        if (ids.length > 0) {
            return '&d=' + ids.join(',');
        } else {
            return "";
        }
    }

    function calculateNearestNeighbors(type, threshold) {
        precalculateNearestNeighbors(type, jukeboxData.maxBranches, jukeboxData.maxBranchThreshold);
        count = collectNearestNeighbors(type, threshold);
        postProce