Class: Graphsrb::DiEdge

Inherits:
Edge
  • Object
show all
Defined in:
lib/graphsrb/diedge.rb

Instance Attribute Summary

Attributes inherited from Edge

#vertex1, #vertex2, #weight

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