28 lines
322 B
C++
28 lines
322 B
C++
//
|
|
// Created by 31416 on 24-12-4.
|
|
//
|
|
|
|
#ifndef GRAPH_H
|
|
#define GRAPH_H
|
|
|
|
#include<vector>
|
|
using namespace std;
|
|
|
|
template<typename T>
|
|
class Graph {
|
|
private:
|
|
vector<int> ids;
|
|
Graph *node;
|
|
int max_id;
|
|
|
|
public:
|
|
Graph() {
|
|
ids.clear();
|
|
node = NULL;
|
|
max_id = 0;
|
|
}
|
|
};
|
|
|
|
|
|
#endif //GRAPH_H
|