Skip to content

Add topological_sorting using khan's algorithm #2704

@thejeswar2419

Description

@thejeswar2419

The repository currently includes DFS-based graph traversals but lacks a BFS-based implementation of Topological Sorting using Kahn’s Algorithm.

Kahn’s Algorithm provides a clear and efficient way to perform topological ordering while also offering built-in cycle detection and avoiding recursion-depth issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions