#include <edge.h>
Inheritance diagram for EdgeWithoutSource:

Public Methods | |
| EdgeWithoutSource (NodeID target=0, EdgeWeight weight=0) | |
| The default constructor. | |
| NodeID | target () const |
| Returns the identifier of the target vertex. | |
| EdgeWeight | weight () const |
| Returns the weight. | |
Static Public Attributes | |
| EdgeWithoutSource | minWeight () |
| Returns an EdgeWithoutSource object with minimum weight. | |
| EdgeWithoutSource | maxWeight () |
| Returns an EdgeWithoutSource object with maximum weight. | |
Protected Methods | |
| void | setTarget (NodeID target) |
| Sets the target vertex. | |
Private Attributes | |
| NodeID | _target |
| EdgeWeight | _weight |
Friends | |
| bool | operator< (const EdgeWithoutSource &e1, const EdgeWithoutSource &e2) |
| Compares two edges by weight. | |
| bool | operator== (const EdgeWithoutSource &e1, const EdgeWithoutSource &e2) |
| Returns true iff two EdgesWithoutSource are identical, i.e. | |
| std::ostream & | operator<< (std::ostream &os, const EdgeWithoutSource &e) |
| Writes a string representation of an EdgeWithoutSource to an output stream. | |
This makes sense when the source vertex is clear from the context.
Definition at line 25 of file edge.h.
|
||||||||||||
|
Returns true iff two EdgesWithoutSource are identical, i.e. the targets and the weights are equal. |
1.2.17