Graphs encoding 3-manifolds of genus two