Hysteresis loops of magnetoconductance in graphene devices