|
XX CMake Package
|
an edge in a graph More...
#include <XXGraphEdge.h>
an edge in a graph
an edge can be directed or undirected, depending on the weights
Public Member Functions | |
| Edge (Vertex *vertexA=nullptr, Vertex *vertexB=nullptr, const double &weightForward=1.0, const double &weightBackward=Edge::invalidWeight) | |
| virtual double | getForwardWeight () const |
| virtual double | getBackwardWeight () const |
| bool | hasForwardLink () const |
| bool | hasBackwardLink () const |
| bool | linksVertex (const Vertex *vertex) const |
| const Vertex * | getVertexA () const |
| const Vertex * | getVertexB () const |
Static Public Attributes | |
| static const double | invalidWeight |
Protected Attributes | |
| Vertex * | vertexA |
| Vertex * | vertexB |
| double | weightForward |
| double | weightBackward |
Friends | |
| class | Graph |
| XX::Graph::Edge::Edge | ( | Vertex * | vertexA = nullptr, |
| Vertex * | vertexB = nullptr, | ||
| const double & | weightForward = 1.0, | ||
| const double & | weightBackward = Edge::invalidWeight ) |
|
virtual |
|
virtual |
| const Vertex * XX::Graph::Edge::getVertexA | ( | ) | const |
| const Vertex * XX::Graph::Edge::getVertexB | ( | ) | const |
| bool XX::Graph::Edge::hasBackwardLink | ( | ) | const |
| bool XX::Graph::Edge::hasForwardLink | ( | ) | const |
| bool XX::Graph::Edge::linksVertex | ( | const Vertex * | vertex | ) | const |
|
friend |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |