24 #ifndef __MLPACK_METHODS_EMST_EDGE_PAIR_HPP
25 #define __MLPACK_METHODS_EMST_EDGE_PAIR_HPP
56 lesser(lesser), greater(greater),
distance(dist)
59 "EdgePair::EdgePair(): indices cannot be equal.");
82 #endif // __MLPACK_METHODS_EMST_EDGE_PAIR_HPP
An edge pair is simply two indices and a distance.
size_t & Greater()
Modify the greater index.
size_t Lesser() const
Get the lesser index.
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
size_t greater
Greater index.
EdgePair(const size_t lesser, const size_t greater, const double dist)
Initialize an EdgePair with two indices and a distance.
size_t Greater() const
Get the greater index.
double & Distance()
Modify the distance.
size_t lesser
Lesser index.
double Distance() const
Get the distance.
size_t & Lesser()
Modify the lesser index.
double distance
Distance between two indices.