summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
Diffstat (limited to 'monkey')
-rw-r--r--monkey/graph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/monkey/graph.py b/monkey/graph.py
index 5bf78ec..3e1d3a2 100644
--- a/monkey/graph.py
+++ b/monkey/graph.py
@@ -1,10 +1,10 @@
#!/usr/bin/python3
class Node(object):
- def __init__(self, data):
+ def __init__(self, data, eout=None):
self.data = data
self.ein = []
- self.eout = []
+ self.eout = eout if eout else []
# (Re-)insert a child node [target] to [self] at index [idx] (or as the
# rightmost child if index is not given). Also append [self] to the list of