summaryrefslogtreecommitdiff
path: root/monkey/test.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-24 15:32:06 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-24 15:32:06 +0200
commit5b4f1e25980ee18a323eba1415ed453b3a910ca3 (patch)
treec0de7236bd56478a46c175184a21099cf706dc1f /monkey/test.py
parent367d955d6e28ccb64ccd6dc21c009c8fac6ffe4b (diff)
Remove in-edges from monkey.graph.Node class
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-xmonkey/test.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/monkey/test.py b/monkey/test.py
index bb28e9b..dfe20bc 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -167,16 +167,10 @@ elif sys.argv[2] == 'graph' and len(sys.argv) == 4:
def label(node):
return stringify(node.data[2])
- def node_attr(node):
- if node.ein and node.data[2] == node.ein[0].data[2]:
- return 'shape="point"'
- return ''
-
def edge_attr(a, b):
if a.data[2] == b.data[2]:
return 'arrowhead="none"'
return ''
- graphviz_str = graphviz(nodes, pos=position, label=label,
- node_attr=node_attr, edge_attr=edge_attr)
+ graphviz_str = graphviz(nodes, pos=position, label=label, edge_attr=edge_attr)
print(graphviz_str)