未验证 提交 12a721c0 编写于 作者: H hsm207 提交者: GitHub

Fix number_of_nodes()

order() is a method of the class Graph
上级 70bbc176
......@@ -117,7 +117,7 @@ class Graph(defaultdict):
def number_of_nodes(self):
"Returns the number of nodes in the graph"
return order()
return self.order()
def random_walk(self, path_length, alpha=0, rand=random.Random(), start=None):
""" Returns a truncated random walk.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册