The vertex set of the graph G is the power set of U={1,2,3}, so the total number of vertices is:
∣V∣=2∣U∣=23=8 An undirected edge exists between any two distinct subsets A and B if and only if one is a proper subset of the other (A⊊B or B⊊A).
For the empty set ∅, it is a proper subset of every other non-empty subset S⊆U:
∅⊊S,∀S∈2U∖{∅} Therefore, ∅ is directly connected to all remaining 23−1=7 vertices in the graph G.
In a Breadth First Search (BFS) starting from ∅:
The starting vertex ∅ is visited first (1 choice).
Since all other 7 vertices are at distance 1 from ∅, they will all be visited at level 1 in any possible permutation.
Thus, the number of possible BFS orderings starting from ∅ is:
∣B(∅)∣=1×7!=5040