-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraph.h
More file actions
34 lines (30 loc) · 673 Bytes
/
Copy pathGraph.h
File metadata and controls
34 lines (30 loc) · 673 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
#pragma once
#include <iostream>
#include <iterator>
#include <list>
#include <vector>
#include "Vertex.h"
#include "BFSSolution.h"
#include <string>
using namespace std;
class Graph
{
private:
vector<Vertex> g;
int lSize = 0;
bool isVertexExists(int u) const;
public:
Graph(int n);
void MakeEmptyGraph(int n);
list<int> GetAdjList(int u);
list<GraphNode> getAdjFullList(int u);
void AddEdge(int u, int v, int c);
void RemoveEdge(int u, int v);
void AddFlow(int u, int v, int f);
int getCapacity(int u, int v);
void printGraph() const;
Graph getResidualGraph();
vector<Vertex> getVectorVertex() const;
int getVSize() const;
int getFlow(int s) const;
};