# File lib/graphviz.rb, line 160
160:   def add_graph( xGraphName, *hOpt )
161:     @hoGraphs[xGraphName] = GraphViz::new( xGraphName, :parent => self, :type => @oGraphType )
162:    
163:     if hOpt.nil? == false and hOpt[0].nil? == false
164:       hOpt[0].each do |xKey, xValue|
165:         @hoGraphs[xGraphName][xKey.to_s] = xValue
166:       end
167:     end
168: 
169:     @elements_order.push( { 
170:       "type" => "graph", 
171:       "name" => xGraphName,
172:       "value" => @hoGraphs[xGraphName] 
173:     } )
174:     
175:     return( @hoGraphs[xGraphName] )
176:   end