input/triang.cpp
double cost(int i, int j, int k)
{
    int* p1 = points[i];
    int* p2 = points[j];
    int *p3 = points[k];
    return dist(p1, p2) + dist(p2, p3) + dist(p3, p1);
}
// A utility function to find cost of a triangle. The cost is considered
// as perimeter (sum of lengths of all edges) of the triangle
A utility function to find cost of a triangle. The cost is considered
as perimeter (sum of lengths of all edges) of the triangle
A utility function to find cost of a triangle . The cost is considered as perimeter ( sum of lengths of all edges ) of the triangle
double cost(int i, int j, int k)
{
    int* p1 = points[i];
    int* p2 = points[j];
    int *p3 = points[k];
    return dist(p1, p2) + dist(p2, p3) + dist(p3, p1);
}
double cost ( int i , int j , int k ) { int * p1 = points [ i ] ; int * p2 = points [ j ] ; int * p3 = points [ k ] ; return dist ( p1 , p2 ) + dist ( p2 , p3 ) + dist ( p3 , p1 ) ; }
A utility function to find cost of a triangle.
A utility function to find cost of a triangle .