Lattice density-functional theory on graphene