Fix includes, add attribution headers, remove unused constructor

This commit is contained in:
2022-04-22 21:41:19 -05:00
parent 952c318619
commit 710807dde7
6 changed files with 25 additions and 35 deletions

View File

@@ -1,9 +1,14 @@
#ifndef PROJECT2_GRAPH_HPP_INCLUDED
#define PROJECT2_GRAPH_HPP_INCLUDED
#include <string> // string
#include <vector> // vector<int>, vector<vector<int>
class graph {
public:
// Constructors
graph() {}
graph(const int processes, const int resources);
// Initializers:
// Read a graph from a file
void read(std::string filename);
@@ -29,4 +34,6 @@ private:
std::vector<int> resource_counts;
struct m matrix; // Tell me, Mr. Anderson, what good is a phone call if you are unable to speak?
bool is_blocked(int process_id);
};
};
#endif