Class: Rex::Parser::GraphML::Element::GraphML

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/parser/graphml.rb

Overview

A graphml element is the root of a GraphML document. See: graphml.graphdrawing.org/specification/xsd.html#element-graphml

Constant Summary collapse

ELEMENT_NAME =
'graphml'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGraphML

Returns a new instance of GraphML.


275
276
277
278
279
# File 'lib/rex/parser/graphml.rb', line 275

def initialize
  @nodes = {}
  @edges = []
  @graphs = []
end

Instance Attribute Details

#edgesObject

Returns the value of attribute edges


286
287
288
# File 'lib/rex/parser/graphml.rb', line 286

def edges
  @edges
end

#graphsObject

Returns the value of attribute graphs


289
290
291
# File 'lib/rex/parser/graphml.rb', line 289

def graphs
  @graphs
end

#nodesObject

Returns the value of attribute nodes


283
284
285
# File 'lib/rex/parser/graphml.rb', line 283

def nodes
  @nodes
end