This repository contains (work in progress) implementations of basic graph algorithms in C++. I made it to test the algorithms I've learnt in my Graduate Algorithms course. In the future it will include support for: DFS, Ford Fulkerson, Min Cut, and more. Currently, it includes:
- Representation of unweighted graphs using an adjacency list.
- Breadth-First Search (BFS) algorithm for unweighted graphs.
- Depth-First Search (DFS) algorithm for unweighted graphs.
- Representation of weighted graphs using an adjacency matrix.
- Breadth-First Search (BFS) algorithm for weighted graphs.
- Depth-First Search (DFS) algorithm for weighted graphs.
- Max Flow (Ford Fulkerson) algorithm.
- Max Flow (Edmonds Karp) algorithm.
-
Clone the repository:
git clone https://github.com/vedant527/graph-algos.git
-
Run the following commands to build files
mkdir build && cd build/ && cmake ..
-
Create and run the executable
make && ./out