Gradient Descent - Graph Algorithms