/// <summary> /// Clean way to minimize a graph. /// </summary> private designGraph Minimize(designGraph graph) { var mol = OBFunctions.designgraphtomol(graph); var newMol = OBFunctions.InterStepMinimize(mol); OBFunctions.updatepositions(graph, newMol); return(graph); }