Class: Rex::Parser::GraphML::Element::GraphML
- Inherits:
-
Object
- Object
- Rex::Parser::GraphML::Element::GraphML
- 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
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#graphs ⇒ Object
Returns the value of attribute graphs.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize ⇒ GraphML
constructor
A new instance of GraphML.
Constructor Details
#initialize ⇒ GraphML
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
#edges ⇒ Object
Returns the value of attribute edges.
286 287 288 |
# File 'lib/rex/parser/graphml.rb', line 286 def edges @edges end |
#graphs ⇒ Object
Returns the value of attribute graphs.
289 290 291 |
# File 'lib/rex/parser/graphml.rb', line 289 def graphs @graphs end |
#nodes ⇒ Object
Returns the value of attribute nodes.
283 284 285 |
# File 'lib/rex/parser/graphml.rb', line 283 def nodes @nodes end |