Solver for Convex Optimization Problems in Graph Form