SpiecsEngine
 
Loading...
Searching...
No Matches

◆ execute()

void scl::directed_acyclic_graph::execute ( )

Execute all node function by order.

Definition at line 17 of file DirectedAcyclicGraph.cpp.

18 {
19 std::unordered_map<std::string, bool> visited;
20 for (auto& node : m_Nodes)
21 {
22 if (!visited[node.first])
23 {
24 execute_internal(node.second, visited);
25 }
26 }
27 }
void execute_internal(directed_acyclic_node *node, std::unordered_map< std::string, bool > &visited)
Execute a node's function.
std::unordered_map< std::string, directed_acyclic_node * > m_Nodes
Graph Nodes.