add linear_constraints to graphs()