Class: Grandprix::Graph
- Inherits:
-
Object
- Object
- Grandprix::Graph
- Defined in:
- lib/grandprix/graph.rb
Defined Under Namespace
Classes: CycleDetected, PredecessorCount, Sort, SuccessorTable
Instance Method Summary collapse
Instance Method Details
#sort(graph) ⇒ Object
2 3 4 |
# File 'lib/grandprix/graph.rb', line 2 def sort(graph) Sort.new(graph).solve end |