To graph a linear equation, you can use two methods: using any two points on the line, or using the slope and y-intercept. Given two points (x1, y1) and (x2, y2), the line passes through those two points. Alternatively, if you know the slope m and the y-intercept b, the line's equation is y = mx + b.