Skip to content

Help about finding cycles in infinite graph. #18

Answered by HeWeMel
nguyenhieuec asked this question in Q&A
Discussion options

You must be logged in to vote

Dear nguyenhieuec,

NoGraphs supports the following algorithms (see feature overview: DFS, BFS, topological search, Dijkstra, A* and MST. None of these algorithms can directly be used for finding all cycles in a graph.

The topological search of NoGraphs finds a single reachable cycle in a directed graph (can be seen here ) and reports it. But the existence of a reachable cycle violates the precondition of the algorithm, is interpreted as an error, and thus, the algorithm stops after reporting the cycle. So, you get one cycle, but not all the others.

This discussion might help you. Here, the difference between simple cycles, a cycle base and all cycles is explained. This could be helpful fo…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HeWeMel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #1 on October 28, 2023 21:23.