class Graph::Thingy

You know… THINGY!

Has a pointer back to its graph parent and attributes.

Public Instance Methods

attributes?() click to toggle source

Does this thing have attributes?

# File lib/graph.rb, line 529
def attributes?
  not self.attributes.empty?
label(name) click to toggle source

Shortcut method to set the label attribute.

# File lib/graph.rb, line 520
def label name
  attributes.reject! { |s| s =~ /^label =/ }
  attributes << "label = #{Graph.escape_label name}"