Method: RGL::DOT::Digraph#initialize

Defined in:
lib/rgl/rdot.rb

#initialize(params = {}, option_list = GRAPH_OPTS+GRAPH_OPTS_LGCY) ⇒ Digraph

Creates a new Digraph with the params Hash providing settings for all graph options. The option_list parameter restricts those options to the list of valid names it contains. The exception to this is the elements option which, if specified, must be an Enumerable containing a list of nodes, edges, and/or subgraphs.



439
440
441
442
# File 'lib/rgl/rdot.rb', line 439

def initialize(params = {}, option_list = GRAPH_OPTS+GRAPH_OPTS_LGCY)
  super(params, option_list)
  @dot_string = 'digraph'
end