Fix func test with row/col of 0. PEP8 cleanup. Smaller global test case.

This commit is contained in:
mrg
2020-09-29 11:35:58 -07:00
parent 4b5bbe755f
commit 0c280e062a
4 changed files with 59 additions and 43 deletions
+12 -1
View File
@@ -121,4 +121,15 @@ class timing_graph():
def __str__(self):
""" override print function output """
return "Nodes: {}\nEdges:{} ".format(list(self.graph), self.graph)
str = ""
for n in self.graph:
str += n + "\n"
for d in self.graph[n]:
str += "\t\t-> " + d + "\n"
return str
def __repr__(self):
""" override print function output """
return str(self)