How many undirected graphs (not necessarily connected) can be constructed out of a given set of vertices?
View worked solution
Answer: D
To find the number of undirected graphs that can be constructed from a given set of vertices, we consider the possible edges between these vertices:
- Total possible edges: In an undirected graph with vertices, any pair of distinct vertices can form an edge. The number of ways to choose a pair of vertices from vertices is given by: This represents the maximum number of possible edges in a simple undirected graph of size .
- Constructing a graph: For each of these possible edges, we have exactly choices:
- The edge is present in the graph.
- The edge is absent from the graph.
- Total number of graphs: Since the choice for each edge is independent, the total number of distinct undirected graphs is:
Therefore, the correct option is D.
Free practice · Your answers on this page are not saved.
