| 69 | } |
| 70 | |
| 71 | void test_multiedges() { |
| 72 | std::vector<Line> s = { |
| 73 | Line(Point(0, 0), Point(2, 2)), |
| 74 | Line(Point(1, 1), Point(3, 3)) |
| 75 | }; |
| 76 | auto [pts, adj] = build_graph(s); |
| 77 | assert(adj[0].size() == 1u && adj[1].size() == 2u && adj[2].size() == 2u && adj[3].size() == 1u); |
| 78 | } |
| 79 | |
| 80 | int main() { |
| 81 | test_square(); |