| 4 | std::vector<std::pair<size_t, size_t>> get_edges(); |
| 5 | |
| 6 | int main() { |
| 7 | using namespace matplot; |
| 8 | auto edges = get_edges(); |
| 9 | auto g = graph(edges); |
| 10 | g->layout_algorithm(network::layout::force); |
| 11 | |
| 12 | for (int i = 0; i < 300; ++i) { |
| 13 | g->layout_iterations(i); |
| 14 | std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
| 15 | } |
| 16 | |
| 17 | show(); |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | std::vector<std::pair<size_t, size_t>> get_edges() { |
| 22 | return { |
nothing calls this directly
no test coverage detected