Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All simple cycles algorithm #39

Open
emperorz opened this issue Feb 20, 2019 · 0 comments
Open

All simple cycles algorithm #39

emperorz opened this issue Feb 20, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@emperorz
Copy link

Depends on SCC algorithm (see issue 38).

Useful for AML/fraud ring detection, feedback mechanism finding.

I suggest Johnson's algorithm, though there is a more general version, but it is behind a paywall (grrr).

Neo4j doesn't seem to do this (no idea why).

Description here: https://www.cs.tufts.edu/comp/150GA/homeworks/hw1/Johnson%2075.PDF

Example code here, it isn't particularly great, but it probably works: https://github.com/mission-peace/interview/blob/master/src/com/interview/graph/AllCyclesInDirectedGraphJohnson.java

There are distributed cycle detection algo's too, but they look tricky. Here's one: https://www.researchgate.net/publication/283642998_Distributed_cycle_detection_in_large-scale_sparse_graphs

Interestingly, we can work backwards from this to strongly connected components.

@JonHerke-TG JonHerke-TG added the enhancement New feature or request label Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants