Class: GEXF::EdgeSet
Instance Method Summary collapse
Methods inherited from SetOfSets
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 |