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

[FR] a function to efficiently check whether a graph is acyclic #385

Closed
nsajko opened this issue Jun 7, 2024 · 1 comment
Closed

[FR] a function to efficiently check whether a graph is acyclic #385

nsajko opened this issue Jun 7, 2024 · 1 comment

Comments

@nsajko
Copy link

nsajko commented Jun 7, 2024

Something like:

"""
    has_cycles(graph)::Bool

Returns `false` iff `graph` is acyclic.
"""
function has_cycles end
@gdalle
Copy link
Member

gdalle commented Jun 7, 2024

We already have

https://juliagraphs.org/Graphs.jl/stable/algorithms/traversals/#Graphs.is_cyclic

does it work with your problem?

@nsajko nsajko closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants