Finish impl'ing reading a file

This commit is contained in:
2022-04-22 18:48:36 -05:00
parent aeeb33e699
commit 8234aca2e0
7 changed files with 79 additions and 49 deletions

View File

@@ -1,23 +1,25 @@
class graph {
private:
int num_processes;
int num_resources;
int *resource_counts;
struct m{
int x, y;
std::vector<std::vector<int>> data;
} matrix; // Tell me, Mr. Anderson, what good is a phone call if you are unable to speak?
public:
// Constructors
graph() {}
graph(const int processes, const int resources);
// Destructors
~graph();
// Initializers:
void init(const int **data);
void read(std::string filename);
// check functions:
// is the graph...
bool reducible();// ?
bool knotted();// ?
struct m{
int x, y;
std::vector<std::vector<int>> data;
};
private:
int num_processes = 0;
int num_resources = 0;
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);
};

View File

@@ -1,3 +0,0 @@
void read_file(std::string filename);