How to create manually a periodic crystal (unit cell) of a graphene?

I want to learn model basic unit of a graphene with periodic boundary conditions so that I can extend it to needed dimensions. Any helpful tutorials ?