Aleph-w  1.9
General library for algorithms and data structures
Aleph::Total_Cost< GT, Distance, SA > Class Template Reference

#include <tpl_graph_utils.H>

Public Member Functions

 Total_Cost (Distance __dist=Distance(), SA __sa=SA())
 
Distance::Distance_Type total_cost (GT &g)
 Compute the total cost.
 
Distance::Distance_Type operator() (GT &g)
 
bool operator() (typename GT::Arc *a)
 

Detailed Description

template<class GT, class Distance = Dft_Dist<GT>, class SA = Dft_Show_Arc<GT>>
class Aleph::Total_Cost< GT, Distance, SA >

Functor for computing the total cost of arcs

Generally used for computing cost of spanning trees.

Member Function Documentation

◆ operator()()

template<class GT , class Distance = Dft_Dist<GT>, class SA = Dft_Show_Arc<GT>>
Distance::Distance_Type Aleph::Total_Cost< GT, Distance, SA >::operator() ( GT &  g)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


The documentation for this class was generated from the following file:

Leandro Rabindranath León