Commit 4c83a5d7 authored by michael lundquist's avatar michael lundquist
Browse files

Adding bfs to the shortestPathTester

parent a5e55a18
......@@ -62,6 +62,8 @@ public class SearchTest {
ArrayList<String> expected = new ArrayList<>(Arrays.asList(shortestPath));
ArrayList<String> actual = createGraph().dfs("A", "D");
assertEquals(expected, actual);
actual = createGraph().bfs("A", "D");
assertEquals(expected, actual);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment