Skip to content

ninjoz/graph-algorithms-visulaisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph Algorithms Visulaisation

Live Demo

To access the live demo of the application, click here.

Description

This project is an application that simulates several graph algorithms. It provides a practical and visual understanding of how Breadth-First Search (BFS), Depth-First Search (DFS), Kruskal's algorithm, and Prim's algorithm work.

main

Features

  • Breadth-First Search (BFS): BFS is a graph traversal algorithm that explores all the vertices of a graph in breadth-first order i.e., all the vertices at the current level are visited before moving on to the next level.

    bfs

  • Depth-First Search (DFS): DFS is another graph traversal algorithm that explores all the vertices of a graph in depth-first order i.e., it explores as far as possible along each branch before backtracking.

    GRAPH traverse OREDR

  • Kruskal's Algorithm: This algorithm is used to find the minimum spanning tree of a connected and undirected graph. It treats each node as an isolated tree and connects one pair of trees at a time.

    kruskal

  • Prim's Algorithm: Prim's algorithm also finds the minimum spanning tree of a graph but it starts from a random vertex and greedily grows the tree from there.

    prim

Technologies Used

  • HTML
  • CSS
  • JavaScript (including D3.js for graph(DFS) visualization)
  • SVG for animations and graph rendering
  • Canvas For animations and graph rendering of BFS

Usage

To use the application:

  1. Clone the repository.
  2. Open the index.html file in a web browser.
  3. And try all the Graph Visulaisation

Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push to your fork and submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Contributors