Characterization of minimal 3-manifolds by edge-coloured graphs