Update graph.py

added support for additional values :
*new for loop adding values