mlpack
|
An edge pair is simply two indices and a distance. More...
#include <edge_pair.hpp>
Public Member Functions | |
EdgePair (const size_t lesser, const size_t greater, const double dist) | |
Initialize an EdgePair with two indices and a distance. More... | |
size_t | Lesser () const |
Get the lesser index. | |
size_t & | Lesser () |
Modify the lesser index. | |
size_t | Greater () const |
Get the greater index. | |
size_t & | Greater () |
Modify the greater index. | |
double | Distance () const |
Get the distance. | |
double & | Distance () |
Modify the distance. | |
An edge pair is simply two indices and a distance.
It is used as the basic element of an edge list when computing a minimum spanning tree.
|
inline |