fixing the value analysis was using for optimal graphs