I have a problem where I need to traverse ALL nodes of the Directed Acyclic graph in a specific order because some nodes/vertices are dependent on results of multiple other nodes/vertices.
In this case, DFS or BFS won't work.
What is the solution/algorithm/ threads for traversing a DAG like this?
Should I be also ordering the nodes? eg: That node which does not depend on anything else - is first, then Node A, then Node B, then C (which depends on Node A and Node B).. beforehand?