adding graphs for sgd gs and scd