Skip to content

Bug in dfs.py #7

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].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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