Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
FordFulkerson.hpp
Go to the documentation of this file.
1
6// Copyright (c) 2017 Czech Technical University in Prague | Faculty of Information Technology. All rights reserved.
7
8#pragma once
9
10// ---------------------------------------------------------------------------------------------------------------------
11
12#include <alib/unordered_map>
13
15#include <node/NodeClasses.hpp>
16#include <edge/EdgeClasses.hpp>
17
18namespace graph {
19
20namespace maximum_flow {
21
24
25// Old implementation without templates
28
29// ---------------------------------------------------------------------------------------------------------------------
30
32 public:
33
34// ---------------------------------------------------------------------------------------------------------------------
35
37 const node::Node &source,
38 const node::Node &sink);
39
41 const node::Node &source,
42 const node::Node &sink);
43
44// ---------------------------------------------------------------------------------------------------------------------
45
46};
47
48// =====================================================================================================================
49
50
51// ---------------------------------------------------------------------------------------------------------------------
52
53} // namespace maximum_flow
54
55} // namespace graph
56
Class extending the unordered_map class from the standard library. Original reason is to allow printi...
Definition: unordered_map.hpp:47
Definition: DirectedGraph.hpp:26
Definition: UndirectedGraph.hpp:26
Definition: FordFulkerson.hpp:31
static Flow findMaximumFlow(const DirectedGraph &graph, const node::Node &source, const node::Node &sink)
Definition: FordFulkerson.cpp:190
Definition: Node.hpp:17
ext::unordered_map< node::Node, ext::unordered_map< node::Node, int > > Capacity
Definition: FordFulkerson.hpp:22
ext::unordered_map< node::Node, ext::unordered_map< node::Node, int > > Flow
Definition: FordFulkerson.hpp:23
Definition: ReconstructPath.hpp:14