The elements of $G$ are of the form $(v_i,v_j)$ such that you should be able to find $v_k\in V$ such that $(v_i,v_k)$ and $(v_k,v_j)$ are in $E$. Like $(0,1)$ and $(1,2)$ are in $E$ and $0,1,2$ are in $V$ so $(0,2)$ is in $G.$ Like wise you can write other elements.