An undirected edge is simply an undirected pair (source, target) used in undirected graphs. UnDirectedEdge == UnDirectedEdge
# File lib/rgl/base.rb, line 71 def eql?(edge) super or (target == edge.source and source == edge.target) end
# File lib/rgl/base.rb, line 75 def hash source.hash ^ target.hash end
UnDirectedEdge.to_s == "(1=2)"
# File lib/rgl/base.rb, line 80 def to_s; "(#{source}=#{target})"; end
Generated with the Darkfish Rdoc Generator 2.