adds graph.rb changes