GATE Computer ScienceHardGATE CS (PYQ pattern)

How many pairwise non-isomorphic simple graphs (connected or not) have exactly 5 vertices and 5 edges?

  1. A. 5
  2. B. 4
  3. C. 6
  4. D. 7

Correct answer: C. 6

Connected ones are unicyclic: C₅; C₄ plus a pendant; a triangle with two pendants on one vertex; a triangle with pendants on two vertices; a triangle with a pendant path of length 2: 5. Disconnected: 5 edges on 4 vertices is K₄ − e plus an isolated vertex: 1. Total 6.

More Discrete Mathematics questions

Exams that ask this topic