📄 test.cpp
字号:
/* file: test.cpp * to-do: just for test, test each class and it's method * email: efiish@gmail.com * date: 06.11.30 */#include <stdio.h>#include "graph_matrix.h" // for test the class mgraph
#include "mcolor.h" // for mcolor algorithmint main(){ mgraph g(5); g.read_file("test.g"); // create graph from file g.print(); // print the graph's edge matrix
// now get the maximum span tree
printf("\t\t max spanning tree \n");
mgraph span_tree(5);
g.max_span_tree(span_tree);
span_tree.print();
//mcolor it
printf("\t\t 3-coloring \n");
mcolor(3,g); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -