Represents a directed edge.
More...
#include <dai/weightedgraph.h>
|
std::ostream & | operator<< (std::ostream &os, const DEdge &e) |
| Writes a directed edge to an output stream. More...
|
|
Represents a directed edge.
dai::DEdge::DEdge |
( |
size_t |
m1, |
|
|
size_t |
m2 |
|
) |
| |
|
inline |
Constructs a directed edge pointing from m1 to m2.
bool dai::DEdge::operator== |
( |
const DEdge & |
x | ) |
const |
|
inline |
bool dai::DEdge::operator< |
( |
const DEdge & |
x | ) |
const |
|
inline |
Smaller-than operator (performs lexicographical comparison)
std::string dai::DEdge::toString |
( |
| ) |
const |
|
inline |
Formats a directed edge as a string.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const DEdge & |
e |
|
) |
| |
|
friend |
Writes a directed edge to an output stream.
First node index (source of edge)
size_t dai::DEdge::second |
Second node index (target of edge)
The documentation for this class was generated from the following file: