-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraph.h
More file actions
35 lines (31 loc) · 695 Bytes
/
Copy pathGraph.h
File metadata and controls
35 lines (31 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "Edge.h"
#include "Vertex.h"
#include <map>
#include <vector>
using namespace std;
class Graph {
private:
vector <Edge*> edge;
map <int,Vertex*> vertex;
public:
Graph() {};
Graph(string filename,int bound);
unsigned int bound;
void build(string filename);
vector<Edge*>& getAllEdge();
void addEdge(Edge*);
Edge* getEdge(int);
void deleteEdge(int it);
map <int,Vertex*> getAllVertex();
bool isVertex(int index);
Vertex* getVertex(int index);
void deleteVertex(int index);
void addVertex(Vertex* v);
void edgeCoarsening(Edge* e);
void calculateWANCN();
void calculateWANCN(Vertex* uu);
void sortEdge();
bool isEdge(int, int);
Vertex* mergeNodes();
};