cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Add code for detecting cycle in undirected graph

Open shashwatjolly opened this issue 9 years ago • 7 comments

I'm working for this in C++ :)

shashwatjolly avatar Oct 04 '17 13:10 shashwatjolly

Can I implement this in python? @AdiChat

aakash-garg avatar Oct 04 '17 13:10 aakash-garg

Sure @aakash-sopho Go ahead 👍

AdiChat avatar Oct 04 '17 14:10 AdiChat

I'm working on this in Java

ranjanbinwani avatar Oct 04 '17 14:10 ranjanbinwani

PR #426 .. implementation in python

aakash-garg avatar Oct 04 '17 14:10 aakash-garg

PR #428 Implemented in C++

shashwatjolly avatar Oct 04 '17 14:10 shashwatjolly

PR #431 Implemented in Java

ranjanbinwani avatar Oct 04 '17 14:10 ranjanbinwani

my approach deals with checking the cycle using lightweight unionfind set data structure

although @shashwatjolly has already done great work,but his and mine appraoches are quite different.

codyalgorith avatar Oct 05 '17 13:10 codyalgorith