Lines Matching refs:ordering
58 vector<int> ordering; in TEST() local
59 int independent_set_size = IndependentSetOrdering(graph, &ordering); in TEST()
61 sort(ordering.begin(), ordering.begin() + 3); in TEST()
62 sort(ordering.begin() + 3, ordering.end()); in TEST()
65 EXPECT_EQ(ordering.size(), 5); in TEST()
66 EXPECT_EQ(ordering[0], 0); in TEST()
67 EXPECT_EQ(ordering[1], 2); in TEST()
68 EXPECT_EQ(ordering[2], 4); in TEST()
69 EXPECT_EQ(ordering[3], 1); in TEST()
70 EXPECT_EQ(ordering[4], 3); in TEST()
92 vector<int> ordering; in TEST() local
93 int independent_set_size = IndependentSetOrdering(graph, &ordering); in TEST()
95 EXPECT_EQ(ordering.size(), 5); in TEST()
96 EXPECT_EQ(ordering[4], 0); in TEST()
97 sort(ordering.begin(), ordering.begin() + 4); in TEST()
98 EXPECT_EQ(ordering[0], 1); in TEST()
99 EXPECT_EQ(ordering[1], 2); in TEST()
100 EXPECT_EQ(ordering[2], 3); in TEST()
101 EXPECT_EQ(ordering[3], 4); in TEST()