#include #include <../inc/my_graph.h> const int n = 10000; int main() { /* Matrix mat; ofstream out_f("in_out/adj_matrix.out"); out_f << mat << endl; Graph list = mat2list(mat); auto res = BFS(list, 1); int src, dest, cost; while (true) { cout << "insert src and dest [1, " << list.size() << "]\n"; cin >> src >> dest; res = BFS(list, src); cost = res[dest - 1].depth; cout << cost << endl; } */ ofstream out("data/adj_list.out"); Matrix mat = read_file(); Graph list = mat2list(mat); mat.clear(); mat = list2mat(list); out << mat; }