Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Create detecting_cyclicgraph.py #122

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yatingupta10
Copy link

No description provided.

return False
visited.add(vertex)
path.add(vertex)
for neighbour in g.get(vertex, ()):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use None instead of empty tuple. As it would be easy for others specially beginners to understand the code.

@CuriousLearner
Copy link
Member

Hi @yatingupta10

Please check for PEP8 errors. (I see incorrect indentation)

Also include test for the Algo.

@CuriousLearner
Copy link
Member

Your test and the algo should be in the same PR.

So close the other PR and include your test here.

@yatingupta10
Copy link
Author

Included test just now! @CuriousLearner

@CuriousLearner
Copy link
Member

@yatingupta10 Please also do the changes mentioned in code diff.

@tapaswenipathak
Copy link

#12. Not in the list of the referenced issue but can be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants