The number of distinct simple graphs with up to three nodes is
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 and vertices.
Let be the number of vertices in the graph:
- For vertex:
- There is only possible graph: a single isolated vertex.
- For vertices:
- edges: Two isolated vertices.
- edge: A single edge connecting the two vertices ().
- Total for is graphs.
- For vertices:
- edges: Three isolated vertices.
- edge: One edge and one isolated vertex.
- edges: A path of length 2 ().
- edges: A triangle ( or ).
- Total for is graphs.
Summing these up, the total number of distinct simple graphs with up to three nodes is:
Hence, the correct option is C.
Free practice · Your answers on this page are not saved.
