Lines Matching refs:neighbors
117 EXPECT_EQ(forest->Neighbors(0).size(), 1.0);
139 const HashSet<int>& neighbors = forest->Neighbors(0);
140 EXPECT_EQ(neighbors.size(), 2);
141 EXPECT_TRUE(neighbors.find(4) != neighbors.end());
142 EXPECT_TRUE(neighbors.find(3) != neighbors.end());
146 const HashSet<int>& neighbors = forest->Neighbors(3);
147 EXPECT_EQ(neighbors.size(), 1);
148 EXPECT_TRUE(neighbors.find(0) != neighbors.end());
152 const HashSet<int>& neighbors = forest->Neighbors(4);
153 EXPECT_EQ(neighbors.size(), 1);
154 EXPECT_TRUE(neighbors.find(0) != neighbors.end());
158 const HashSet<int>& neighbors = forest->Neighbors(1);
159 EXPECT_EQ(neighbors.size(), 0);
163 const HashSet<int>& neighbors = forest->Neighbors(2);
164 EXPECT_EQ(neighbors.size(), 0);