lib/graphviz/graph.rb
# Add a subgraph with a given name and attributes.
# @return [Graph] the new graph.
Add a subgraph with a given name and attributes.
Add a subgraph with a given name and attributes .
def add_subgraph(name = nil, **attributes)
			name ||= "#{@name}S#{@nodes.count}"
			subgraph = Graph.new(name, self, attributes)
			self << subgraph
			return subgraph
		end
def add_subgraph ( name = nil , ** attributes ) name ||= "#{@name}S#{@nodes.count}" subgraph = Graph . new ( name , self , attributes ) self << subgraph return subgraph end
Add a subgraph with a given name and attributes.
Add a subgraph with a given name and attributes .
the new graph.
the new graph .
Graph
name
attributes