# File lib/puppet/simple_graph.rb, line 442
442:   def write_graph(name)
443:     return unless Puppet[:graph]
444: 
445:     Puppet.settings.use(:graphing)
446: 
447:     file = File.join(Puppet[:graphdir], "#{name}.dot")
448:     File.open(file, "w") { |f|
449:       f.puts to_dot("name" => name.to_s.capitalize)
450:     }
451:   end