Method: Graph#orient
- Defined in:
- lib/graph.rb
#orient(dir = "TB") ⇒ Object
Shortcut method to specify the orientation of the graph. Defaults to the graphviz default “TB”.
283 284 285 |
# File 'lib/graph.rb', line 283 def orient dir = "TB" graph_attribs << "rankdir = #{dir}" end |