Feb. 21, 2014, 5:37 p.m. by Rosalind Team
Topics: Graphs
Given: A simple directed acyclic graph with n≤103 vertices in the edge list format.
Return: A topological sorting (i.e., a permutation of vertices) of the graph.
4 5 1 2 3 1 3 2 4 3 4 2
4 3 1 2
Visualizationclick to expand Visualization by David Galles: http://www.cs.usfca.edu/~galles/visualization/ConnectedComponent.html.
Visualization by David Galles: http://www.cs.usfca.edu/~galles/visualization/ConnectedComponent.html.
Please login to solve this problem.
Page:
Context:
Rosalind is a platform for learning bioinformatics through problem solving. Please login with Google/Twitter/Facebook or register a new account.