lib/graphviz/graphml.rb in ruby-graphviz-1.0.2 vs lib/graphviz/graphml.rb in ruby-graphviz-1.0.3

- old
+ new

@@ -150,11 +150,11 @@ end end end unless @current_node.nil? - node = @current_graph.add_node( node.attributes['id'] ) + node = @current_graph.add_nodes( node.attributes['id'] ) @current_node.each do |k, v| node[k] = v end end @@ -180,11 +180,11 @@ source = node.attributes['source'] source = {source => node.attributes['sourceport']} if node.attributes['sourceport'] target = node.attributes['target'] target = {target => node.attributes['targetport']} if node.attributes['targetport'] - @current_edge = @current_graph.add_edge( source, target ) + @current_edge = @current_graph.add_edges( source, target ) node.each_element( ) do |child| #begin send( "graphml_graph_edge_#{child.name}".to_sym, child ) #rescue NoMethodError => e @@ -212,10 +212,10 @@ end end list.each { |s| list.each { |t| - @current_graph.add_edge( s, t ) unless s == t + @current_graph.add_edges( s, t ) unless s == t } } end end end