Skip to content
Official PYQ · 1994

GATE CS 1994 Q1.6 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The number of distinct simple graphs with up to three nodes is

Choose one option
View worked solution

Answer: C

To find the number of distinct simple graphs with up to three nodes, we consider the isomorphism classes (unlabeled graphs) for n=1,2,n = 1, 2, and 33 vertices.

Let nn be the number of vertices in the graph:

  1. For n=1n = 1 vertex:
    • There is only 11 possible graph: a single isolated vertex.
  2. For n=2n = 2 vertices:
    • 00 edges: Two isolated vertices.
    • 11 edge: A single edge connecting the two vertices (K2K_2).
    • Total for n=2n = 2 is 22 graphs.
  3. For n=3n = 3 vertices:
    • 00 edges: Three isolated vertices.
    • 11 edge: One edge and one isolated vertex.
    • 22 edges: A path of length 2 (P3P_3).
    • 33 edges: A triangle (K3K_3 or C3C_3).
    • Total for n=3n = 3 is 44 graphs.

Summing these up, the total number of distinct simple graphs with up to three nodes is:

Total=1+2+4=7\text{Total} = 1 + 2 + 4 = 7

Hence, the correct option is C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions