Topological Invariants of Edge States for Periodic Two-Dimensional Models