changed edge criterium /scalarproduct thresholds