"Save graph" icon display

Implementation of the mechanism to know if the graph had changed since the last saving. It permits to know when the button "Save graph" must be locked.
Fix bug with savedGraphIndex

The first action did'nt activate the save icon