Calculate the order in which nodes in the dag should be traversed during the forward pass(roots to leaves)
Useful links