class RGL::DOT::Digraph
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.
Public Class Methods
new(params = {}, option_list = GRAPH_OPTS+GRAPH_OPTS_LGCY)
click to toggle source
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.
Calls superclass method
RGL::DOT::Graph::new
# File lib/rgl/rdot.rb 439 def initialize(params = {}, option_list = GRAPH_OPTS+GRAPH_OPTS_LGCY) 440 super(params, option_list) 441 @dot_string = 'digraph' 442 end