Class: GEXF::SetOfSets

Inherits:
Set
  • Object
show all
Extended by:
Forwardable
Includes:
Attribute::Definable
Defined in:
lib/gexf/set_of_sets.rb

Direct Known Subclasses

EdgeSet

Instance Method Summary collapse

Methods included from Attribute::Definable

#attribute_definitions, #attributes, #define_attribute

Instance Method Details

#[](node_id) ⇒ Object



7
8
9
# File 'lib/gexf/set_of_sets.rb', line 7

def [](node_id)
  @hash[node_id]
end

#each(&block) ⇒ Object



19
20
21
# File 'lib/gexf/set_of_sets.rb', line 19

def each(&block)
  uniq_items.each(&block)
end

#to_aObject



11
12
13
# File 'lib/gexf/set_of_sets.rb', line 11

def to_a
  uniq_items
end

#to_hashObject



15
16
17
# File 'lib/gexf/set_of_sets.rb', line 15

def to_hash
  @hash
end