Graph Algorithms

Undirected Graphs

BFS

Directed Graphs

Minimum Spanning Trees

Greedy for the rescue!

Shortest Paths

Max-Flow & Min-Cut

Let G(V,E,C) be an undirected graph, with capacity (weight) function C:E→R≥0 two special vertices s,t∈V