sakeel-103 / DFS-BFS-Graph-Travers

The DFS-BFS graph traversal project is built using Angular for the frontend and Node.js for the backend. It demonstrates two popular graph traversal algorithms: Depth-First Search (DFS) and Breadth-First Search (BFS). These algorithms are fundamental for exploring nodes and edges of a graph, solving a variety of computational and real-world problem
https://dfs-bfs-graph-travers.netlify.app
13 stars 52 forks source link

Adding Interactive BFS Visualiser with User Input #395

Open IkkiOcean opened 4 days ago

IkkiOcean commented 4 days ago

Issue: Adding Interactive BFS Visualizer with User Input

Summary

I want to implement an interactive Breadth-First Search (BFS) visualizer that allows users to input a graph represented as an adjacency dictionary. The visualizer will display the graph and highlight the nodes in the order they are visited during the BFS traversal.

Features

Requirements

  1. Input Format:
    • The input should be an adjacency dictionary in the following format:
      {
        "0": [1, 2],
        "1": [0, 2],
        "2": [0, 1]
      }
  2. Graph Structure:
    • Nodes should be represented as circles, and edges as lines connecting the nodes.
  3. BFS Visualization:
    • On clicking a node, the BFS traversal should be visualized with a delay between the highlighting of each node.
  4. Reset Feature:
    • Provide a way for users to re-enter graph data without refreshing the page.

Demo Video

https://github.com/user-attachments/assets/4744e973-4fd3-41d4-915d-12d8cdd0f524

This is a demo. I will implement with considering the UI of application

github-actions[bot] commented 4 days ago

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

sakeel-103 commented 2 days ago

@IkkiOcean Ok, but first check the current approach then work.

IkkiOcean commented 2 days ago

@sakeel-103

Screenshot 2024-10-24 at 2 38 07 PM

I plan to replace this visualiser. is that okay?