Skip to content

Commit 4e33705

Browse files
committed
change hard coded default wright in add_edge
1 parent 9b707a0 commit 4e33705

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphs/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def has_node(self, node):
3838
"""
3939
return node in self.node_neighbors
4040

41-
def add_edge(self, edge, wt=1, label=""):
41+
def add_edge(self, edge, wt=self.DEFAULT_WEIGHT, label=""):
4242
"""
4343
Add an edge to the graph connecting two nodes.
4444
An edge, here, is a pair of node like C(m, n) or a tuple

0 commit comments

Comments
 (0)