Update file headers and includes

This commit is contained in:
John 2022-04-23 20:16:15 -05:00
parent 1d7b6db0a3
commit a7c0a3babe
5 changed files with 25 additions and 18 deletions

View File

@ -1,7 +1,7 @@
# +-------------+---------+-----------------------+
# | John Breaux | jab0910 | JohnBreaux@my.unt.edu |
# +-------------+---------+-----------------------+
# | Created 2022-04-04 Edited 2022-04-22 |
# | Created 2022-04-04 Updated 2022-04-22 |
# +-----------------------------------------------+
# ---------- Variables listed below --------- #

View File

@ -1,7 +1,7 @@
/* +-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| Created 2022-04-17 |
| Created 2022-04-17 Updated 2022-04-23 |
+-----------------------------------------------+ */
#include "graph.hpp"
// clang-format off

View File

@ -1,13 +1,16 @@
/* +-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
| | | | //TODO put your names here
+-------------+---------+-----------------------+
| Created 2022-04-16 |
+-----------------------------------------------+ */
#include "graph.hpp" // Graph reduction/Knot detection, struct adjmatrix
/* ╔════════════════╦══════════════════════════╗
John Breaux JohnBreaux@my.unt.edu
Gabriel Castro GabrielCastro@my.unt.edu
Michael Laymon MichaelLaymon@my.unt.edu
Created 2022-04-16 Updated 2022-04-23
*/
#include <string>
#include "graph.hpp" // graph, Graph reduction/Knot detection
int main (int argc, char **argv) {
// TODO: Grab file name from args
//? Command line argument structure?
//? Other flags? What other features should this have?
if (argc < 2) return 1;
@ -20,10 +23,9 @@ int main (int argc, char **argv) {
return err;
}
g.print ();
// TODO: Implement graph reduction and/or knot detection
printf ("Graph is %s\n", g.reducible () ? "not reducible! Deadlock!" : "reducible! No deadlock!"); //?
// TODO: Destroy the graph created by read_file
// Graph reduction
printf ("Graph is %s\n", g.reducible () ? "not reducible! Deadlock!" : "reducible! No deadlock!");
// TODO: Knot detection
// printf ("Graph is %s\n", g.knotted () ? "knotted! Deadlock!" : "not! No deadlock!");
return 0;
}
}

View File

@ -1,12 +1,14 @@
/* +-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| Created 2022-04-17 |
| Created 2022-04-17 Updated 2022-04-23 |
+-----------------------------------------------+ */
#include "read.hpp"
#include <fstream>
#include <regex>
#include <string>
#include <vector>
#include "graph.hpp"

View File

@ -1,8 +1,11 @@
/* +-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| Created 2022-04-22 |
| Created 2022-04-22 Updated 2022-04-23 |
+-----------------------------------------------+ */
#include <vector>
#include "graph.hpp"
using std::vector;