SMIL  0.9.1
Edge< NodeT, WeightT > Class Template Reference

Non-oriented edge. More...

#include <DGraph.hpp>

+ Collaboration diagram for Edge< NodeT, WeightT >:

Public Types

typedef WeightT WeightType
 

Public Member Functions

void desactivate ()
 
 Edge ()
 Default constructor.
 
 Edge (NodeT a, NodeT b, WeightT w=1)
 Constructor using two nodes and an optional weight (default 1).
 
 Edge (const Edge &rhs)
 Copy constructor.
 
bool isActive () const
 
bool operator!= (const Edge &rhs) const
 
bool operator< (const Edge &rhs) const
 
Edgeoperator= (const Edge &rhs)
 
bool operator== (const Edge &rhs) const
 
virtual void printSelf (ostream &os=std::cout, string s="") const
 

Public Attributes

NodeT source
 Source node.
 
NodeT target
 Target node.
 
WeightT weight
 Edge weight/value.
 

Detailed Description

template<class NodeT = size_t, class WeightT = size_t>
class smil::Edge< NodeT, WeightT >

Non-oriented edge.

See also
Graph

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