removed main.cpp
This commit is contained in:
parent
fae826e2d0
commit
002b936de6
27
src/main.cpp
27
src/main.cpp
|
@ -1,27 +0,0 @@
|
|||
#include <fstream>
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue