19 lines
351 B
Julia
19 lines
351 B
Julia
# function to return the possible operations of a graph
|
|
|
|
using Base.Threads
|
|
|
|
function get_operations(graph::DAG)
|
|
apply_all!(graph)
|
|
|
|
if isempty(graph.possibleOperations)
|
|
generate_options(graph)
|
|
end
|
|
|
|
for node in graph.dirtyNodes
|
|
clean_node!(graph, node)
|
|
end
|
|
empty!(graph.dirtyNodes)
|
|
|
|
return graph.possibleOperations
|
|
end
|