Skip to content

Added bridge-finding algorithm #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

hargunkaur286
Copy link
Contributor

@hargunkaur286 hargunkaur286 commented Mar 13, 2025

References to other Issues or PRs or Relevant literature

Fixes #635

Brief description of what is fixed or changed

This PR introduces the implementation of Tarjan's Bridge-Finding Algorithm. The key changes include:

  1. Adding the find_bridges function in graphs/algorithms.py file to detect all bridges (cut-edges) in an undirected graph using Tarjan's algorithm.

  2. Documentation with example usage and reference links.

  3. Updating the all list to expose find_bridges as part of the public API.

  4. Extending the tests file to include tests for find_bridges

Other comments

Signed-off-by: Hargun Kaur <hargunkaur286@gmail.com>
Signed-off-by: Hargun Kaur <hargunkaur286@gmail.com>
@czgdp1807 czgdp1807 merged commit 513ba92 into codezonediitj:main Mar 19, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Bridge-Finding Algorithm for Undirected Graphs (Tarjan's Algorithm)
2 participants