Class: GraphML::Graph

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-graphml.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGraph

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

#edgesObject

Returns the value of attribute edges.



80
81
82
# File 'lib/ruby-graphml.rb', line 80

def edges
  @edges
end

#key_namesObject

Returns the value of attribute key_names.



80
81
82
# File 'lib/ruby-graphml.rb', line 80

def key_names
  @key_names
end

#keysObject

Returns the value of attribute keys.



80
81
82
# File 'lib/ruby-graphml.rb', line 80

def keys
  @keys
end

#nodesObject

Returns the value of attribute nodes.



80
81
82
# File 'lib/ruby-graphml.rb', line 80

def nodes
  @nodes
end