-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.h
More file actions
39 lines (37 loc) · 984 Bytes
/
Copy pathNode.h
File metadata and controls
39 lines (37 loc) · 984 Bytes
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
//
// Created by user on 29/11/2022.
//
#ifndef INDIVIDUAL_PROJECT_NODE_H
#define INDIVIDUAL_PROJECT_NODE_H
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <unordered_map>
#include "Readfile.h"
#include "Airports.h"
/**This is the head file that stores the class Node, state as when you are currently are
* and the parent where you are coming at
* and the path cost, the number it took to get to your destination.**/
#include "Route.h"
#include "Airlines.h"
using namespace std;
class Node {
public :
string state;
string parent;
int path_cost;
public:
Node(string state){
this->state = state;
this->parent = nullptr;
this->path_cost = 0;
}
Node(string state, string parent, int path_cost){
this -> state = state;
this-> parent = parent;
this -> path_cost = path_cost;
}
};
#endif //INDIVIDUAL_PROJECT_NODE_H