method

test_dag

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: TSortTest
test_dag() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.