Package graph :: Module sorting

Module sorting

Sorting algorithms for python-graph.


Author: Pedro Matiello

License: MIT

Functions
list
topological_sorting(graph)
Topological sorting.
Function Details

topological_sorting(graph)

 

Topological sorting.

Parameters:
  • graph (graph) - Graph.
Returns: list
Topological sorting for the graph.

Attention: Topological sorting is meaningful only for directed acyclic graphs.