Skip to content

Bug in dfs.py #7

@gaurav-patel-git

Description

@gaurav-patel-git

In line 19 of dfs.py we should add another condition that cur vertex should not be present in stack.
In case of K3 graph the output of your programme is [0, 2, 1, 1].

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