| 55 | ~GraphTest() override {} |
| 56 | |
| 57 | static void VerifyNodes(Node* node, const std::vector<Node*>& expected_in, |
| 58 | const std::vector<Node*>& expected_out) { |
| 59 | std::vector<Node*> in; |
| 60 | for (const Edge* e : node->in_edges()) { |
| 61 | in.push_back(e->src()); |
| 62 | } |
| 63 | EXPECT_EQ(Stringify(expected_in), Stringify(in)); |
| 64 | |
| 65 | std::vector<Node*> out; |
| 66 | for (const Edge* e : node->out_edges()) { |
| 67 | out.push_back(e->dst()); |
| 68 | } |
| 69 | EXPECT_EQ(Stringify(expected_out), Stringify(out)); |
| 70 | } |
| 71 | |
| 72 | void VerifyGraphStats() { |
| 73 | int nodes = 0; |