# File lib/graphviz.rb, line 127 127: def add_graph( xGraphName, *hOpt ) 128: @hoGraphs[xGraphName] = GraphViz::new( xGraphName, :parent => self, :type => @oGraphType ) 129: 130: if hOpt.nil? == false and hOpt[0].nil? == false 131: hOpt[0].each do |xKey, xValue| 132: @hoGraphs[xGraphName][xKey.to_s] = xValue 133: end 134: end 135: 136: @elements_order.push( { 137: "type" => "graph", 138: "name" => xGraphName, 139: "value" => @hoGraphs[xGraphName] 140: } ) 141: 142: return( @hoGraphs[xGraphName] ) 143: end