Beispiel #1
0
 def test_start_not_in_graph(self):
     g = collections.defaultdict(list)
     g[1] = set((2,))
     g[2] = set((3,))
     self.assertIs(find_connected_nodes(g, 9), None)
Beispiel #2
0
 def test_start_not_in_graph(self):
     g = collections.defaultdict(set)
     g[1] = {2}
     g[2] = {3}
     self.assertIs(find_connected_nodes(g, 9), None)
Beispiel #3
0
 def test_start_not_in_graph(self):
     g = collections.defaultdict(list)
     g[1] = set((2,))
     g[2] = set((3,))
     self.assertIs(find_connected_nodes(g, 9), None)