An Elementary theorem on graphs