graph.getSources()

Return an array of all the roots of the graph. Time complexity: O(|V|).