-
Notifications
You must be signed in to change notification settings - Fork 0
/
Edge.hpp
51 lines (42 loc) · 782 Bytes
/
Edge.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
Lab 5 - Kruskal's Algorithm
CSC 255 Objects and Algorithms (Fall 2020)
Oakton Community College
Professor: Kamilla Murashkina
@file Edge.hpp
@author Russell Taylor
@date 10/24/20
*/
#ifndef Edge_hpp
#define Edge_hpp
class Edge {
public:
/**
Constructor
*/
Edge(int u, int v, int weight);
/**
Default constructor
*/
Edge();
/**
Gets the edge's first vertex
@return u the edge's first vertex
*/
int getU();
/**
Gets the edge's second vertex
@return v the edge's second vertex
*/
int getV();
/**
Gets the edge weight
@return weight the edge weight
*/
int getWeight();
private:
int u;
int v;
int weight;
};
#endif /* Edge_hpp */