From 12a721c05ecfe43ab952f0585235573cd6d344bb Mon Sep 17 00:00:00 2001 From: hsm207 Date: Thu, 21 Feb 2019 20:08:26 +0800 Subject: [PATCH] Fix number_of_nodes() order() is a method of the class Graph --- deepwalk/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepwalk/graph.py b/deepwalk/graph.py index d98ec52..6210fa7 100644 --- a/deepwalk/graph.py +++ b/deepwalk/graph.py @@ -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. -- GitLab