-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphe.hpp
More file actions
37 lines (30 loc) · 733 Bytes
/
Graphe.hpp
File metadata and controls
37 lines (30 loc) · 733 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
36
37
#ifndef GRAPHE_HPP
#define GRAPHE_HPP
#include <graphviz/gvc.h>
#include <iostream>
#include<vector>
#include <random>
#include <algorithm>
#include <string>
#include "Edge.hpp"
#include "Noeud.hpp"
using namespace std;
class Noeud;
class Edge;
class Graphe{
public:
Graphe();
Graphe(vector<Noeud*>, vector<Edge*>);
Graphe(Graphe, vector<int>, vector<Edge*>);
void addNoeud(Noeud* name);
void display(string path);
void addEdge(Noeud*, Noeud*, double value);
Noeud* getNoeud(int nb);
Edge* getEdge(int n1, int n2);
void closeRoad(int k, int nb_edge, int seed);
vector<int> DistAleatoires(int k, int nb_edge, int n, int seed);
vector<Noeud*> noeuds;
vector<Edge*> edges;
void closeParticularRoad(int e);
};
#endif