/** * Records the amount of difference between the nodes last returned by * next(). Also stores the minumum amount of difference for node1 */ public void recordDistance(int index1, int index2, Difference diff) { double change = diff.getChangeAmount(); IxDiff m = minimums1.get(index1); if (m == null || m.change > change) { minimums1.put(index1, m = new IxDiff(diff, change, index1, index2)); } }
/** * Records the amount of difference between the nodes last returned by * next(). Also stores the minumum amount of difference for node1 */ public void recordDistance(int index1, int index2, Difference diff) { double change = diff.getChangeAmount(); IxDiff m = minimums1.get(index1); if (m == null || m.change > change) { minimums1.put(index1, m = new IxDiff(diff, change, index1, index2)); } }