Method: Graph::Node#to_s
- Defined in:
- lib/graph.rb
#to_s ⇒ Object
Returns the node in dot syntax.
535 536 537 538 539 540 541 |
# File 'lib/graph.rb', line 535 def to_s if self.attributes? then "%-20p [ %-20s ]" % [name, attributes.join(',')] else "#{name.inspect}" end end |