cleaned up EvaluateGraph