Class: GEXF::EdgeSet

Inherits:
SetOfSets show all
Defined in:
lib/gexf/edgeset.rb

Instance Method Summary collapse

Methods inherited from SetOfSets

#[], #each, #to_a, #to_hash

Methods included from Attribute::Definable

#attribute_definitions, #attributes, #define_attribute

Instance Method Details

#<<(edge) ⇒ Object



2
3
4
5
6
# File 'lib/gexf/edgeset.rb', line 2

def <<(edge)
  append_to_key(edge.source_id, edge)
  append_to_key(edge.target_id, edge) unless edge.directed?
  self
end