//-*-c++-*-
#ifndef _TLPSTLFUNCTIONS_H
#define _TLPSTLFUNCTIONS_H

class SuperGraph;
class MetricProxy;
class node;
class edge;
/**
   This class enables to compare nodes and edges according to a metric,
   instances of this class are useful for using stl sort function.
 */
class LessByMetric {
 public:
  LessByMetric(MetricProxy *m):metric(m){}
  bool operator() (node n1,node n2);
  bool operator() (edge e1,edge e2);
private:
  MetricProxy *metric;
};

#endif
