Update graph

corrected typing error
graph creation works