Topological Sort of Directed Acyclic Graph

This is a topological sort using depth first search of directed acyclic graph using depth first search Version two.