lib/graphviz/graph.rb
def dump_graph(buffer, indent = "", **options)
			format = graph_format(options)
			
			buffer.puts "#{indent}#{format} #{dump_value(self.identifier)} {"
			
			@attributes.each do |name, value|
				buffer.puts "#{indent}\t#{name}=#{dump_value(value)};"
			end
			
			@nodes.each do |_name, node|
				node.dump_graph(buffer, indent + "\t", **options)
			end
			
			dump_edges(buffer, indent + "\t", **options)
			
			buffer.puts "#{indent}}"
		end
# Dump the entire graph and all subgraphs to dot text format.
Dump the entire graph and all subgraphs to dot text format.
Dump the entire graph and all subgraphs to dot text format .
def dump_graph(buffer, indent = "", **options)
			format = graph_format(options)
			buffer.puts "#{indent}#{format} #{dump_value(self.identifier)} {"
			@attributes.each do |name, value|
				buffer.puts "#{indent}\t#{name}=#{dump_value(value)};"
			end
			@nodes.each do |_name, node|
				node.dump_graph(buffer, indent + "\t", **options)
			end
			dump_edges(buffer, indent + "\t", **options)
			buffer.puts "#{indent}}"
		end
def dump_graph ( buffer , indent = "" , ** options ) format = graph_format ( options ) buffer . puts "#{indent}#{format} #{dump_value(self.identifier)} {" @attributes . each do | name , value | buffer . puts "#{indent}\t#{name}=#{dump_value(value)};" end @nodes . each do | _name , node | node . dump_graph ( buffer , indent + "\t" , ** options ) end dump_edges ( buffer , indent + "\t" , ** options ) buffer . puts "#{indent}}" end
Dump the entire graph and all subgraphs to dot text format.
Dump the entire graph and all subgraphs to dot text format .
buffer
indent
options