added updateGraph and the options object
testing graph