Given $n$ distinct nodes $1,2...n$, I wish to find the number of connected graphs with these $n$ nodes. I have seen the previous question : How to calculate the number of possible connected simple graphs with $n$ labelled vertices. But in my case multi-edges are allowed.
By multi-edges I mean, if I have $n$ nodes a multi edge is a subset of vertices connecting all those vertices. For example in case of $3$ nodes $\{1,2,3\}$ is a multi-edge connecting all the three edges. For example following are the few ( out of $96$ different ways ) ways of connecting three nodes:
- Select edge $\{1,2,3\}$.
- Select edges $\{1,2,3\}$ , $\{1,3\}$ , $\{2,3\}$ and $\{1,2\}$.
- Select edges $\{1,2,3\}$ and $\{1,3\}$.
- Select edges $\{1,3\}$ and $\{2,3\}$ and so on.
I am just looking for hints not solutions. As this is part of question from Project Euler question: Power set of power sets.
A friend of mine gave the above method of multi-edges as a hint to me and told me I had to modify the recurrence in the question: How to calculate the number of possible connected simple graphs with $n$ labelled vertices. But I am unable to figure it out and just need a new direction for thinking.