Exercise · ZW-CONNECTED-GRAPH-010 · ★★★ Advanced

How many different connected graphs are there on labeled vertices \(1,2,3,4\)? (Two graphs are different if their edge sets differ.)

Choose one option.

Show answer
  • C. 38

Explanation

There are \(2^6=64\) possible edge sets; 26 give a disconnected graph and 38 a connected one. This can be checked by cases or by brute force.

Study Discrete mathematics in ZWMath →

Review the concept: Connected graph

A graph \(G=(V,E)\) is connected if any two vertices \(u,v\in V\) are joined by a path.

\[\forall\,u,v\in V\ \ \exists\ \text{path from } u \text{ to } v\]

More practice problems: connected graph

← ZW-CONNECTED-GRAPH-009