Method: RGL::Graph#to_s

Defined in:
lib/rgl/base.rb

#to_sString

Utility method to show a string representation of the edges of the graph.

Returns:

  • (String)


264
265
266
# File 'lib/rgl/base.rb', line 264

def to_s
  edges.collect {|e| e.to_s}.sort.join
end