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

📄 bclique.cpp

📁 data structures, algorithms and Application书的源代码
💻 CPP
字号:
// test backtracking max clique

#include <iostream.h>
#include "ag.h"

void main(void)
{
   AdjacencyGraph G(8);
   int n = 7, p[8];
   cout << "enter number of edges of 7 vertex graph" << endl;
   int e, u, v;
   cin >> e;
   for (int i =1; i <= e; i++) {
      cout << "enter edge " << i << endl;
      cin >> u >> v;
      G.Add(u,v);}
   cout << "Size of max clique is " 
        << G.MaxClique(p) << endl;
   cout << "Vertex selection vector is" << endl;
   for (int i = 1; i <= n; i++)
      cout << p[i] << ' ';
   cout << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -