On gamma-hyperellipticity of graphs