From 11b743401f24dfcf3e061fb4258c0d6ab05dbfee Mon Sep 17 00:00:00 2001 From: nicolaspayette Date: Thu, 17 Oct 2013 17:50:07 -0400 Subject: [PATCH] preserve behavior of BreadthFirstSearch following fc7a997 Not entirely sure that is the right thing to do, though. Will open ticket. --- .../org/nlogo/extensions/nw/algorithms/BreadthFirstSearch.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/nlogo/extensions/nw/algorithms/BreadthFirstSearch.scala b/src/main/org/nlogo/extensions/nw/algorithms/BreadthFirstSearch.scala index 98f985d..61e096f 100644 --- a/src/main/org/nlogo/extensions/nw/algorithms/BreadthFirstSearch.scala +++ b/src/main/org/nlogo/extensions/nw/algorithms/BreadthFirstSearch.scala @@ -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 }