Introduction to the theory of graphs