Class: RGL::DOT::Digraph
Overview
A digraph is a directed graph representation which is the same as a Graph except that its header in dot notation has an identifier of digraph instead of graph.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(params = {}, option_list = GRAPH_OPTS) ⇒ Digraph
constructor
Creates a new Digraph with the params Hash providing settings for all graph options.
Methods inherited from Graph
#<<, #each_element, #pop, #to_s
Constructor Details
#initialize(params = {}, option_list = GRAPH_OPTS) ⇒ 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.
364 365 366 367 |
# File 'lib/rgl/rdot.rb', line 364 def initialize (params = {}, option_list = GRAPH_OPTS) super(params, option_list) @dot_string = 'digraph' end |