Math:Graph theory

See the pictures