How to deal with the ground node in circuit graph and the gains of dependent sources?
I see there also only 3 nodes. 

The picture is hard to read but if the calculation is right the minus means only that your first intention of writing down the direction of our graph for i3 was in the wrong direction. 

If you change this you will get a positive gain g.

Its just a matter of drawing your graphs.