Graph linear equations with one variable