edge.h
Go to the documentation of this file.
1 #ifndef EDGE_H
2 #define EDGE_H
3 
4 using namespace std;
5 
9 class edge
10 {
11 public:
18  edge(int f, int t, int c);
19 
25  bool operator== (const edge &e) const;
26 
30  int from;
31 
35  int to;
36 
40  int cost;
41 };
42 
47 {
54  bool operator() (const edge& a, const edge& b) const;
55 };
56 
60 struct hash_edge
61 {
67  size_t operator() (const edge& e) const;
68 };
69 
70 #endif // EDGE_H
A struct that provides the comparison of edge objects.
Definition: edge.h:46
int cost
The cost of the edge, i.e., length.
Definition: edge.h:40
int to
The ending vertex of the edge.
Definition: edge.h:35
A class for representing edges.
Definition: edge.h:9
A struct that provides the hash function of edge objects.
Definition: edge.h:60
int from
The starting vertex of the edge.
Definition: edge.h:30


coverage_path
Author(s): Micha Sende
autogenerated on Thu Oct 31 2019 10:37:30