Topologically sort Gert graphs
var Graph = Graph;var TopoSort = ;var graph =directed: truevertices:'Nap':'Make Toast': 'Eat breakfast''Pour juice': 'Eat breakfast''Eat breakfast': 'Nap';// ['Pour juice', 'Make Toast', 'Eat breakfast', 'Nap']var morning = ;
Returns an array of topologically sorted vertex ids from the directed, acyclic
graph is undirected or cyclic,
TopoSort() will throw an error.