![]() |
aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
|
Generic cycle-detection algorithms for aGrUM graphs. More...
#include <utility>#include <vector>#include <agrum/agrum.h>#include <agrum/base/core/sequence.h>#include <agrum/base/graphs/graphConcepts.h>#include <agrum/base/graphs/algorithms/generic/cycleDetection_tpl.h>Go to the source code of this file.
Namespaces | |
| namespace | gum |
| gum is the global namespace for all aGrUM entities | |
| namespace | gum::graph |
Functions | |
| template<GUM_DiGraphable G> | |
| Sequence< NodeId > | gum::graph::topologicalOrder (const G &g) |
Returns a topological ordering of the nodes of g (Kahn's algorithm). | |
| template<GUM_UndiGraphable G> | |
| bool | gum::graph::hasUndirectedCycle (const G &g) |
Returns true if g contains at least one undirected cycle. | |
Generic cycle-detection algorithms for aGrUM graphs.
All functions live in namespace gum::graph and are constrained by the concepts defined in graphConcepts.h :
GUM_DiGraphable — topologicalOrder GUM_UndiGraphable — hasUndirectedCycle
Definition in file cycleDetection.h.