#ifndef PROJECT2_INC_GRAPH_HPP #define PROJECT2_INC_GRAPH_HPP #include // string #include // vector, vector typedef std::vector> matrix; class graph { public: // Constructors graph () {} // Initializers: // Read a graph from a file int read (std::string filename); // Error codes given off by read () enum ERROR { INVALID_PROCESSES = 0b000001, INVALID_RESOURCES = 0b000010, INVALID_COUNTS = 0b000100, INVALID_ROWS = 0b001000, INVALID_COLUMNS = 0b010000, INVALID_FILENAME = 0b100000 }; // check functions: // is the graph... bool reducible (); // ? bool knotted (); // ? // miscellaneous functions: // print the graph void print (); private: int num_processes = 0; int num_resources = 0; std::vector resource_counts; matrix m; // Tell me, Mr. Anderson, what good is a phone call if you are unable to speak? }; #endif // PROJECT2_INC_GRAPH_HPP