public static float compareSitesDistances_MAX(Edge edge0,Edge edge1) { float length0=edge0.sitesDistance(); float length1=edge1.sitesDistance(); if(length0<length1){ return 1; } if(length0>length1){ return -1; } return 0; }