Update dag.rb

alloing more links between every two sets of nodes