Browse files

Forgot to properly call fallback function.

  • Loading branch information...
1 parent 70e8836 commit 26eeff19f47bf9af318616d65f28b4252eb336d8 @rik0 committed Nov 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pynetsym/graph/nx_impl.py
View
4 pynetsym/graph/nx_impl.py
@@ -121,7 +121,7 @@ def predecessors(self, node):
try:
method = self.nx_graph.predecessors
except AttributeError:
- return self.nx_graph.neighbors()
+ return self.nx_graph.neighbors(node)
else:
return method(node)
@@ -132,7 +132,7 @@ def successors(self, node):
try:
method = self.nx_graph.successors
except AttributeError:
- return self.nx_graph.neighbors()
+ return self.nx_graph.neighbors(node)
else:
return method(node)

0 comments on commit 26eeff1

Please sign in to comment.