23 lines
517 B
C++
23 lines
517 B
C++
|
|
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(const int processes, const int resources);
|
|
// Destructors
|
|
~graph();
|
|
// Initializers:
|
|
void init(const int **data);
|
|
// check functions:
|
|
// is the graph...
|
|
bool reducible();// ?
|
|
bool knotted();// ?
|
|
}; |