ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::WeightedEdge< W > Struct Template Reference

an edge \( [ u , v ] \) of weight \( w \) More...

#include <ADS/graph/MinimumSpanningTree.h>

Public member functions

bool operator== (const WeightedEdge &) const =default
 whether the two edges have the same ends, in order, and weight

Public attributes

int u
 one end
int v
 the other end
W w
 the weight

Detailed description

template<class W>
struct ADS::WeightedEdge< W >

an edge \( [ u , v ] \) of weight \( w \)

Member function documentation

◆ operator==()

template<class W>
bool ADS::WeightedEdge< W >::operator== ( const WeightedEdge< W > & ) const
default

whether the two edges have the same ends, in order, and weight

Member data documentation

◆ u

template<class W>
int ADS::WeightedEdge< W >::u

one end

◆ v

template<class W>
int ADS::WeightedEdge< W >::v

the other end

◆ w

template<class W>
W ADS::WeightedEdge< W >::w

the weight


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