stNeighborsForQuantum(type, maxNeighbors, maxThreshold, q1) {
        var edges = [];
        var id = 0;
        for (var i = 0; i < track.analysis[type].length; i++) {

            if (i === q1.which) {
                continue;
            }

            var q2 = track.analysis[type][i];
            var sum = 0;
            for (var j = 0; j < q1.overlappingSegments.length; j++) {
                var seg1 = q1.overlappingSegments[j];
                var distance = 100;
                if (j < q2.overlapp