method

test_dag

v1_9_1_378 - Show latest stable - Class: TSortTest
test_dag()
public

No documentation available.

# File lib/tsort.rb, line 265
    def test_dag
      h = TSortHash[{1=>[2, 3], 2=>[3], 3=>[]}]
      assert_equal([3, 2, 1], h.tsort)
      assert_equal([[3], [2], [1]], h.strongly_connected_components)
    end