If the input is a Directed Acyclic Graph, then output the topological order of the vertices. If the input is a Directed Cycle Graph, then output the direct cycle(s).
zoeduan / graph Goto Github PK
View Code? Open in Web Editor NEWIf the input is a Directed Acyclic Graph, then output the topological order of the vertices. If the input is a Directed Cycle Graph, then output the direct cycle(s).