From 1e5ff4f465cc8c8938d0eba28876c6224d900b77 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 4 Aug 2015 19:46:22 -0400 Subject: [PATCH] Added results.py, which helps with testing graph and tree problems. --- graphs_trees/utils/results.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 graphs_trees/utils/results.py diff --git a/graphs_trees/utils/results.py b/graphs_trees/utils/results.py new file mode 100644 index 0000000..3ee7465 --- /dev/null +++ b/graphs_trees/utils/results.py @@ -0,0 +1,13 @@ +class Results(object): + + def __init__(self): + self.results = [] + + def add_result(self, result): + self.results.append(result) + + def clear_results(self): + self.results = [] + + def __str__(self): + return str(self.results) \ No newline at end of file