Method: Graph::Node#to_s
- Defined in:
- lib/graph.rb
#to_s ⇒ Object
Returns the node in dot syntax.
624 625 626 627 628 629 630 |
# File 'lib/graph.rb', line 624 def to_s if self.attributes? then "%-20p [ %-20s ]" % [name, attributes.join(',')] else "#{name.inspect}" end end |