public void setEdge(int i, int j) {
    if(i!=j){
      double myweight=locations[i].getPoint().distance(locations[j].getPoint());
      adjacent[i][j] = true;
      adjacent[j][i] = true;
      weight[i][j] = myweight*scaleFeetPixel;
      weight[j][i] = myweight*scaleFeetPixel;
    }
  }