aboutsummaryrefslogtreecommitdiff
path: root/beliefs/models/DirectedGraph.py
diff options
context:
space:
mode:
Diffstat (limited to 'beliefs/models/DirectedGraph.py')
-rw-r--r--beliefs/models/DirectedGraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/beliefs/models/DirectedGraph.py b/beliefs/models/DirectedGraph.py
index 8dfb9bd..8fce894 100644
--- a/beliefs/models/DirectedGraph.py
+++ b/beliefs/models/DirectedGraph.py
@@ -5,7 +5,7 @@ class DirectedGraph(nx.DiGraph):
"""
Base class for all directed graphical models.
"""
- def __init__(self, edges, node_labels):
+ def __init__(self, edges=None, node_labels=None):
"""
Input:
edges: an edge list, e.g. [(parent1, child1), (parent1, child2)]