Lines Matching defs:ordering
58 vector<int> ordering;
59 int independent_set_size = IndependentSetOrdering(graph, &ordering);
61 sort(ordering.begin(), ordering.begin() + 3);
62 sort(ordering.begin() + 3, ordering.end());
65 EXPECT_EQ(ordering.size(), 5);
66 EXPECT_EQ(ordering[0], 0);
67 EXPECT_EQ(ordering[1], 2);
68 EXPECT_EQ(ordering[2], 4);
69 EXPECT_EQ(ordering[3], 1);
70 EXPECT_EQ(ordering[4], 3);
92 vector<int> ordering;
93 int independent_set_size = IndependentSetOrdering(graph, &ordering);
95 EXPECT_EQ(ordering.size(), 5);
96 EXPECT_EQ(ordering[4], 0);
97 sort(ordering.begin(), ordering.begin() + 4);
98 EXPECT_EQ(ordering[0], 1);
99 EXPECT_EQ(ordering[1], 2);
100 EXPECT_EQ(ordering[2], 3);
101 EXPECT_EQ(ordering[3], 4);
217 // ordering vector.
219 vector<int> ordering;
220 ordering.push_back(0);
221 ordering.push_back(1);
222 ordering.push_back(2);
223 ordering.push_back(3);
225 StableIndependentSetOrdering(graph, &ordering);
227 EXPECT_EQ(ordering[0], 0);
231 vector<int> ordering;
232 ordering.push_back(1);
233 ordering.push_back(0);
234 ordering.push_back(2);
235 ordering.push_back(3);
237 StableIndependentSetOrdering(graph, &ordering);
239 EXPECT_EQ(ordering[0], 1);