Update Graph.sh

New code is updated in which EOF is included.