Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

edge Class Reference

Edge class for connections between node in a graph. More...

#include <graph.h>

Inheritance diagram for edge:

Inheritance graph
[legend]
Collaboration diagram for edge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 edge (unsigned int, unsigned int, double)
graph_object * clone () const
void setLabelF (unsigned int index, double val)
void setLabelL (unsigned int index, long val)
double getLabelF (unsigned int index) const
long getLabelL (unsigned int index) const
double getWeight ()
void setWeight (double val)
double getWidth ()
void setWidth (double val)
unsigned int getFrom ()
unsigned int getTo ()
void setMarked (bool marked)
bool getMarked ()
int getEdgeNum () const
void Print (std::ostream &) const

Private Attributes

bool mark
unsigned int from
unsigned int to
unsigned int edgeNum
std::vector< labelValue > label

Friends

class graph

Detailed Description

Edge class for connections between node in a graph.


Constructor & Destructor Documentation

edge::edge (  unsigned  int,
unsigned  int,
double 
) 
 


Member Function Documentation

graph_object* edge::clone (   )  const [inline, virtual]
 

Implements graph_object.

int edge::getEdgeNum (   )  const [inline]
 

unsigned int edge::getFrom (   )  [inline]
 

double edge::getLabelF (  unsigned int  index  )  const [inline]
 

long edge::getLabelL (  unsigned int  index  )  const [inline]
 

bool edge::getMarked (   )  [inline]
 

unsigned int edge::getTo (   )  [inline]
 

double edge::getWeight (   )  [inline]
 

double edge::getWidth (   )  [inline]
 

void edge::Print (  std::ostream &   )  const [virtual]
 

Reimplemented from graph_object.

void edge::setLabelF (  unsigned int  index,
double  val
) 
 

void edge::setLabelL (  unsigned int  index,
long  val
) 
 

void edge::setMarked (  bool  marked  )  [inline]
 

void edge::setWeight (  double  val  )  [inline]
 

void edge::setWidth (  double  val  )  [inline]
 


Friends And Related Function Documentation

friend class graph [friend]
 


Member Data Documentation

unsigned int edge::edgeNum [private]
 

unsigned int edge::from [private]
 

std::vector<labelValue> edge::label [private]
 

bool edge::mark [private]
 

unsigned int edge::to [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 18 03:42:45 2009 for HOG by doxygen 1.3.4