Method: GraphML::Parser.parse!

Defined in:
lib/ruby-graphml.rb

.parse!(path) ⇒ Object



93
94
95
96
97
98
# File 'lib/ruby-graphml.rb', line 93

def self.parse!(path)
  parser = self.new
  graph  = parser.graph
  parser = Nokogiri::XML::SAX::Parser.new(parser).parse(File.open(path, 'rb'))
  graph
end