Module: Rattler::Util::GraphViz

Defined in:
lib/rattler/util/graphviz.rb,
lib/rattler/util/graphviz/node_builder.rb,
lib/rattler/util/graphviz/digraph_builder.rb

Overview

GraphViz provides utilities to build GraphViz objects representing trees of nodes.

Defined Under Namespace

Modules: NodeBuilder Classes: DigraphBuilder

Class Method Summary collapse

Class Method Details

.digraph(root, name = 'G') ⇒ Object

Returns a new GraphViz digraph object representing root.

Returns:

  • a new GraphViz digraph object representing root



13
14
15
# File 'lib/rattler/util/graphviz.rb', line 13

def self.digraph(root, name='G')
  DigraphBuilder.digraph(root, name)
end