Class: Graphsrb::DiEdge
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary collapse
Methods inherited from Edge
#eql?, #initialize, #to_json, #to_s
Constructor Details
This class inherits a constructor from Graphsrb::Edge
Instance Method Details
#==(other) ⇒ Object
3 4 5 |
# File 'lib/graphsrb/diedge.rb', line 3 def ==(other) (vertex1.id == other.vertex1.id) && (vertex2.id == other.vertex2.id) end |