Permalink
Browse files

Fixes Graph#get_neighbours with directed graphs.

  • Loading branch information...
1 parent 624b464 commit 6435f389225e4468b501d4887c06f3d10ef67332 @bfontaine committed Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/graph.rb
View
@@ -429,7 +429,7 @@ def get_neighbours(n)
end
- if l1 && l2 == label && self.directed?
+ if l1 && l2 == label && !self.directed?
n1 = self.get_node l1

0 comments on commit 6435f38

Please sign in to comment.