Class: YaGraph::Node

Inherits:
Element show all
Defined in:
lib/yagraphlib.rb

Instance Method Summary collapse

Methods inherited from Element

#random_id, #uid

Instance Method Details

#colourObject



124
# File 'lib/yagraphlib.rb', line 124

def colour() "black" end

#idObject



118
# File 'lib/yagraphlib.rb', line 118

def id() "" end

#labelObject



122
# File 'lib/yagraphlib.rb', line 122

def label() id end

#shapeObject



123
# File 'lib/yagraphlib.rb', line 123

def shape() "oval" end

#to_graphviz(out) ⇒ Object



119
120
121
# File 'lib/yagraphlib.rb', line 119

def to_graphviz(out)
  out.puts("  #{id} [ color=\"#{colour}\" label=\"#{label}\" shape=\"#{shape}\" ]")
end