This program is in Java. Please help me code out themethod below? What it is supposed to do is written in blue. Thankyou!
kck This method generates a listing of the vertices of a weighted * directed graph using the reverse dfs topological sorting. * @param g a weighted directed graph @return an array containing a topological ordering of the vertices of g in reverse DFS order; Null is returned if the g contains a directed cycle
OR
OR