Topological Sorting

Given a graph or network, find a topological sorting of the graph. A list in topological order has a special property. Simply expressed: proceeding from element to element along any path in the network, one passes through the list in one direction only. Stated another way, a list in topological order is such that no element appears in it until after all elements appearing on all paths leading to the particular element have been listed.

Parameters

  • VV: number of vertices
  • EE: number of edges

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 2 of 2 algorithms

See more
Tarjan's DFS based algorithm1976O(V+E)O(V+E)O(V)O(V)
Kahn's algorithm1962O(V+E)O(V+E)O(V)O(V)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table