图
无向图的节点定义如下:
// 无向图的节点
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
原文: https://soulmachine.gitbooks.io/algorithm-essentials/content/cpp/graph/
无向图的节点定义如下:
// 无向图的节点
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
原文: https://soulmachine.gitbooks.io/algorithm-essentials/content/cpp/graph/
本文档使用 BookStack 构建