Skip to content

A C++ graph class that supports various advanced graph algorithms

Notifications You must be signed in to change notification settings

Vedant527/Graph-Algos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph Algorithms

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:

Unweighted Graphs

  • Representation of unweighted graphs using an adjacency list.
  • Breadth-First Search (BFS) algorithm for unweighted graphs.
  • Depth-First Search (DFS) algorithm for unweighted graphs.

Weighted 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.

How to Use

  1. Clone the repository:

    git clone https://github.com/vedant527/graph-algos.git
    
  2. Run the following commands to build files

    mkdir build && cd build/ && cmake ..
    
  3. Create and run the executable

    make && ./out

About

A C++ graph class that supports various advanced graph algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published