[ library(graph_algorithms) | Reference Manual | Alphabetic Index ]
Computes a list of edges whose removal would make the graph acyclic
- a graph structure
- a list of e/3 edge structures
Computes a set of edges whose removal would make the graph acyclic.
This set is not necessarily minimal, and it contains an arbitrary
edge from every cycle in the graph.
If the list is empty, the graph is already acyclic.
Modes and Determinism
- graph_cycles(+, -) is det
graph_is_acyclic / 1, top_sort / 2