You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

tc_basic_properties.rb 250 B

12345678910
  1. require 'test/unit'
  2. require 'igraph'
  3. class TestGraph < Test::Unit::TestCase
  4. def test_are_connected
  5. graph = IGraph.new(['A','B','B','C','C','D'],true)
  6. assert graph.are_connected('A','B')
  7. assert !(graph.are_connected('A','C'))
  8. end
  9. end

Ruby binding for the igraph library.