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
Other
17 stars 70 forks source link

FEATURE: Implement Topological Sort using DFS and Indegree visualization #537

Open TejasSaraf opened 4 days ago

TejasSaraf commented 4 days ago

Feature Summary

In a Directed Acyclic Graph (DAG), topological sorting is the process of linearly ranking vertices so that, for each directed edge u-v, vertex u appears before v in the ordering.

Description

DFS-based Approach

Indegree-based Approach (Kahn's Algorithm)

Problems It Solves

  1. Dependency Resolution: Topological sort is crucial for solving dependency-related problems in various domains, such as:
  1. Cycle Detection: Both implementations can detect cycles in a graph, which is essential for identifying circular dependencies.

By implementing and visualizing both approaches, users gain a comprehensive understanding of topological sorting, its applications, and the trade-offs between different algorithms. This feature enhances problem-solving skills and provides practical insights into graph theory and algorithm design.

Proposed Solution

No response

Alternatives Considered

No response

Screenshots/Logs

No response

Additional Information

sakeel-103 commented 1 day ago

@TejasSaraf Just a reminder msg, To complete your implementation as soon as you can.