A class for representing edges.
More...
#include <edge.h>
|
| edge (int f, int t, int c) |
| Constructor that initializes the private member variables. More...
|
|
bool | operator== (const edge &e) const |
| Compare this edge to another one. More...
|
|
A class for representing edges.
Definition at line 9 of file edge.h.
◆ edge()
edge::edge |
( |
int |
f, |
|
|
int |
t, |
|
|
int |
c |
|
) |
| |
Constructor that initializes the private member variables.
- Parameters
-
f | The starting vertex. |
t | The ending vertex. |
c | The cost of the edge. |
Definition at line 3 of file edge.cpp.
◆ operator==()
bool edge::operator== |
( |
const edge & |
e | ) |
const |
Compare this edge to another one.
- Parameters
-
e | The other edge to compare. |
- Returns
- True, of both edges are identical, false otherwise.
Definition at line 7 of file edge.cpp.
◆ cost
The cost of the edge, i.e., length.
Definition at line 40 of file edge.h.
◆ from
The starting vertex of the edge.
Definition at line 30 of file edge.h.
◆ to
The ending vertex of the edge.
Definition at line 35 of file edge.h.
The documentation for this class was generated from the following files: