A Universal Error Measure for Input Predictions Applied to Online Graph Problems