You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My graph theory's a little rusty, so it might be easy to do using the provided API, but is there an easy way to get a list of all the cycles (either as new Graphs, or as edgelists) in a directed graph?
is_cyclic/1 can tell me if there is a cycle, but I want to know what the actual cycles are (I realise this is computationally expensive, that's fine because I only care about small graphs).
The text was updated successfully, but these errors were encountered:
Oh that'd be great, thanks. For my use-case my graphs will only have hundreds of nodes, so a less efficient algo would be fine for me, but I understand if you don't wanna add things to the library which have serious performance footguns.
My graph theory's a little rusty, so it might be easy to do using the provided API, but is there an easy way to get a list of all the cycles (either as new
Graph
s, or as edgelists) in a directed graph?is_cyclic/1
can tell me if there is a cycle, but I want to know what the actual cycles are (I realise this is computationally expensive, that's fine because I only care about small graphs).The text was updated successfully, but these errors were encountered: