class LabelGraph: public Graph

This class represents a labeled graph. It is just a normal graph with some accessors to aboid ugly typecasts.

Attributes:

None public

Methods:

std::vector<double> &label(Node *n) throw (invalid_argument)
const std::vector<double> &am;label(Node *n) const throw (invalid_argument)
Returns a (const) reference to the label of the given node, raising an exception if the node is not a LabelNode.
unsigned int &number(Link *l) throw (invalid_argument)
const unsigned int &number(Link *l) const throw (invalid_argument)
Returns a (const) reference to the number of the given link, raising an exception if the link is not a NumLink.