Update edges.rb

find all direct edges between two nodes