lib/yargraph.rb
# Yield a pair of vertices for each edge
Yield a pair of vertices for each edge
Yield a pair of vertices for each edge
def each_edge
      @edges.each do |v1, v2|
        yield v1, v2
      end
    end
def each_edge @edges . each do | v1 , v2 | yield v1 , v2 end end
Yield a pair of vertices for each edge
Yield a pair of vertices for each edge