Method: Graph#arrowhead

Defined in:
lib/graph.rb

#arrowhead(shape) ⇒ Object

Raises:

  • (ArgumentError)


156
157
158
159
# File 'lib/graph.rb', line 156

def arrowhead shape
  raise ArgumentError, "Bad arrow shape: #{shape}" unless shape =~ ARROW_RE
  Attribute.new "arrowhead = #{shape}"
end