# File lib/state_machine/state.rb, line 232 def draw(graph) node = graph.add_node(name ? name.to_s : 'nil', :label => description, :width => '1', :height => '1', :shape => final? ? 'doublecircle' : 'ellipse' ) # Add open arrow for initial state graph.add_edge(graph.add_node('starting_state', :shape => 'point'), node) if initial? node end