Class: GraphML::Graph
- Inherits:
-
Object
- Object
- GraphML::Graph
- Defined in:
- lib/ruby-graphml.rb
Instance Attribute Summary collapse
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#key_names ⇒ Object
Returns the value of attribute key_names.
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize ⇒ Graph
constructor
A new instance of Graph.
Constructor Details
#initialize ⇒ Graph
Returns a new instance of Graph.
82 83 84 85 86 87 |
# File 'lib/ruby-graphml.rb', line 82 def initialize @keys = {} @key_names = {} @nodes = {} @edges = [] end |
Instance Attribute Details
#edges ⇒ Object
Returns the value of attribute edges.
80 81 82 |
# File 'lib/ruby-graphml.rb', line 80 def edges @edges end |
#key_names ⇒ Object
Returns the value of attribute key_names.
80 81 82 |
# File 'lib/ruby-graphml.rb', line 80 def key_names @key_names end |
#keys ⇒ Object
Returns the value of attribute keys.
80 81 82 |
# File 'lib/ruby-graphml.rb', line 80 def keys @keys end |
#nodes ⇒ Object
Returns the value of attribute nodes.
80 81 82 |
# File 'lib/ruby-graphml.rb', line 80 def nodes @nodes end |