There are various solution of such graph , that you have been mentioned above.
Slope-Intercept Method: Y=mx
y-intercept: Point where a line crosses (intercepts) y axis = (0,y)
x-intercept: Point where a line crosses (intercepts) x axis = (x,0)
I recommended you that try this graphing calculator through this you can easily do your graphing calculations.
For example, if x=0, y=1/2*0 or y=0. Now you have a point to plot (0,0). Do that for a bunch of x's so you have a bunch of points and connect the dots!
This is a linear equation. For any linear equation, you will get a straight line. For each "x" value (the domain) must have a "y" value(the range).
You can use any numbers to be the value of 'x". For example, if x= 2, y will equal to 1. You can write these values as an ordered pair, (2,1). If x=0, y must be 0. Write as an ordered pair, (0,0). As long as you have two points, you can connect these points to make a straight line. When you draw the line, make sure that your line does not stop at the two points but extend the line by drawing two small arrows to each end.