The equqtion of a line in its slope intercept form is:
where m is the slope and b is the y-intercept. From the grph we notice that b=1. We need to find the slope, for this we need two points, let's use the points (-1,0) and (0,1); then the slope is:
Therefore, the equation od the line is: