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 | # | 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 --------- # # ---------- Variables listed below --------- #

View File

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

View File

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

View File

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

View File

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