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

📄 graph.h

📁 clustering for ns-2 simulation
💻 H
字号:
#ifndef _GRAPH_H_
#define _GRAPH_H_

#include <map>
#include <set>
#include <string>

using namespace std;

// Node list
typedef set<int> NodeList;

// Graph definition.
typedef map<int, NodeList> Graph;

// Connect two nodes.
void connect(int nodeA, int nodeB, Graph & graph);

// Erase a node from a graph and all links related to it.
void cancelNode(int node, Graph & graph);

// Calcola il numero di links e il degree di un grafo.
void countLinks(Graph & graph, int & links);

void changeToGraph(string & fileName);

#endif

⌨️ 快捷键说明

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