Edge.to_s => “(1=2)” Edge.to_s => “(1=2)” Edge.to_s => “(1=2 test)”
28 29 30 31 32 33
# File 'lib/plexus/edge.rb', line 28 def to_s l = label ? " '#{label.to_s}'" : '' s = source.to_s t = target.to_s "(#{[s,t].min}=#{[s,t].max}#{l})" end