# File lib/rgl/adjacency.rb, line 41 41: def initialize (edgelist_class = Set, *other_graphs) 42: @edgelist_class = edgelist_class 43: @vertice_dict = Hash.new 44: other_graphs.each do |g| 45: g.each_vertex {|v| add_vertex v} 46: g.each_edge {|v,w| add_edge v,w} 47: end 48: end