/* +-------------+---------+-----------------------+ | John Breaux | jab0910 | JohnBreaux@my.unt.edu | +-------------+---------+-----------------------+ | Created 2022-04-17 Updated 2022-04-23 | +-----------------------------------------------+ */ #include "graph.hpp" // clang-format off void graph::print () { printf("num_processes: %d\nnum_resources: %d\n", num_processes, num_resources); printf("resource_counts: ["); for (auto e: resource_counts) printf("%d, ", e); printf("\b\b]\n"); printf("matrix:\n| "); for (auto x: m) {for (auto y: x) printf("%d, ", y); printf("\b\b |\n| ");} printf("\b\b \b\b"); }