dai::UEdge Class Reference

Represents an undirected edge. More...

#include <dai/weightedgraph.h>

List of all members.

Public Member Functions

 UEdge ()
 Default constructor.
 UEdge (size_t m1, size_t m2)
 Constructs an undirected edge between m1 and m2.
 UEdge (const DEdge &e)
 Construct from DEdge.
bool operator== (const UEdge &x)
 Tests for inequality (disregarding the ordering of the nodes).
bool operator< (const UEdge &x) const
 Smaller-than operator.

Public Attributes

size_t first
 First node index.
size_t second
 Second node index.

Friends

std::ostream & operator<< (std::ostream &os, const UEdge &e)
 Writes an undirected edge to an output stream.


Detailed Description

Represents an undirected edge.

Constructor & Destructor Documentation

dai::UEdge::UEdge (  )  [inline]

Default constructor.

dai::UEdge::UEdge ( size_t  m1,
size_t  m2 
) [inline]

Constructs an undirected edge between m1 and m2.

dai::UEdge::UEdge ( const DEdge e  )  [inline]

Construct from DEdge.


Member Function Documentation

bool dai::UEdge::operator== ( const UEdge x  )  [inline]

Tests for inequality (disregarding the ordering of the nodes).

bool dai::UEdge::operator< ( const UEdge x  )  const [inline]

Smaller-than operator.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const UEdge e 
) [friend]

Writes an undirected edge to an output stream.


Member Data Documentation

First node index.

Second node index.


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

Generated on Thu Aug 5 19:04:09 2010 for libDAI by  doxygen 1.5.5