Skip to content

Commit

Permalink
preserve behavior of BreadthFirstSearch following fc7a997
Browse files Browse the repository at this point in the history
Not entirely sure that is the right thing to do, though. Will open ticket.
  • Loading branch information
nicolaspayette committed Oct 17, 2013
1 parent fc7a997 commit 11b7434
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BreadthFirstSearch(graphContext: GraphContext) {
}
val neighborFinder: Turtle => Iterable[Turtle] = {
(directed, reverse) match {
case (false, _) => graphContext.allNeighbors
case (false, _) => graphContext.undirectedNeighbors
case (true, false) => graphContext.outNeighbors
case (true, true) => graphContext.inNeighbors
}
Expand Down

1 comment on commit 11b7434

@nicolaspayette
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #92.

Please sign in to comment.