phanein / deepwalk

DeepWalk - Deep Learning for Graphs
http://www.perozzi.net/projects/deepwalk/
Other
2.68k stars 826 forks source link

Number of nodes in graph class needs "self." #11

Open jimgoo opened 9 years ago

jimgoo commented 9 years ago

See line 126 of graph.py:

def number_of_nodes(self):
    "Returns the number of nodes in the graph"
    return order()

should be

def number_of_nodes(self):
    "Returns the number of nodes in the graph"
    return self.order()

Cool project!