tree_graph.rb and svg_graph.rb errors corrected