![]() |
RobWorkProject
24.12.4-
|
This class is used to create a dependency graph between string nodes and to check if any cycles exist in the dependency graph. More...
#include <DependencyGraph.hpp>
Public Member Functions | |
DependencyGraph () | |
Constructor. | |
virtual | ~DependencyGraph () |
Destructor. | |
void | addDependency (const std::string &fromA, const std::string &toB) |
Add dependency from node "fromA" to node "toB". More... | |
bool | hasCycleDependency () |
checks if there are any cycles in the dependency graph More... | |
This class is used to create a dependency graph between string nodes and to check if any cycles exist in the dependency graph.
void addDependency | ( | const std::string & | fromA, |
const std::string & | toB | ||
) |
Add dependency from node "fromA" to node "toB".
fromA | [in] name of first node |
toB | [in] name of second node |
bool hasCycleDependency | ( | ) |
checks if there are any cycles in the dependency graph