-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vertex.H
44 lines (38 loc) · 814 Bytes
/
Vertex.H
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
/**
* Course: CS014 Summer 2020
*
* First Name: Shawn
* Last Name: Long
* Username: slong024
* email address: [email protected]
*
*
* Assignment: e.g. assn5
* Filename : e.g. Vertex.H
*
* I hereby certify that the contents of this file represent
* my own original individual work. Nowhere herein is there
* code from any outside resources such as another individual,
* a website, or publishings unless specifically designated as
* permissible by the instructor or TA.
*/
#ifndef VERTEX_H_
#define VERTEX_H_
#include <climits>
#include <list>
using namespace std;
class Vertex {
public:
Vertex()
{
distance = INT_MAX;
label = "";
parent = INT_MAX;
}
~Vertex(){}
string label;
unsigned int distance;
list<unsigned int> neighbors;
unsigned int parent;
};
#endif /* VERTEX_H_ */