⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 这个代码包括求图的最大生成树和M着色问题.
💻 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 + -