# File lib/graphviz/graphml.rb, line 73 def graphml_key( node ) id = node.attributes['id'] @current_attr = { :name => node.attributes['attr.name'], :type => node.attributes['attr.type'] } DEST[node.attributes['for']].each do |d| @attributs[d][id] = @current_attr end node.each_element( ) do |child| begin send( "graphml_key_#{child.name}".to_sym, child ) rescue NoMethodError => e raise "ERROR node #{child.name} can be child of graphml" end end @current_attr = nil end