Counting simple, connected, labeled graphs with N vertices and K edges
up vote
9
down vote
favorite
Given the number of vertices $n$ and the number of edges $k$, I need to calculate the number of possible non-isomorphic, simple, connected, labelled graphs.
My question is very similar to this one. Quoting the accepted answer:
This sequence of numbers is A001187 in the On-Line Encyclopedia of Integer Sequences. If $d_n$ is the number of labelled, connected, simple graphs on $n$ vertices, the numbers $d_n$ satisfy the recurrence
$$sum_kbinom{n}kkd_k2^{binom{n-k}2}=n2^{binom{n}2};$$
from which it’s possible to calculate $d_n$ for small values of $n$. This recurrence is derived as formula (3.10.2) in Herbert S. Wilf, generatingfunctionology, 2nd edition, which is available for free download here.
Example
Let's have $n=4$ (vertices) and $k=3$ (edges). Given my limited knowledge, I'm unable to actually calculate the number of graphs by using the formula above.
Can somebody please walk me through it? I was able to manually count 16 different graphs for this example.
Edit #1
I've found the formula for calculating the total number of simple labelled graphs:
$$binom{binom{n}2}m$$
(Handbook of Discrete and Combinatorial Mathematics, available here, Page 580)
The problem is that the number of graphs given by this formula (for the above example is $20$) also includes all the disconnected graphs.
graph-theory
add a comment |
up vote
9
down vote
favorite
Given the number of vertices $n$ and the number of edges $k$, I need to calculate the number of possible non-isomorphic, simple, connected, labelled graphs.
My question is very similar to this one. Quoting the accepted answer:
This sequence of numbers is A001187 in the On-Line Encyclopedia of Integer Sequences. If $d_n$ is the number of labelled, connected, simple graphs on $n$ vertices, the numbers $d_n$ satisfy the recurrence
$$sum_kbinom{n}kkd_k2^{binom{n-k}2}=n2^{binom{n}2};$$
from which it’s possible to calculate $d_n$ for small values of $n$. This recurrence is derived as formula (3.10.2) in Herbert S. Wilf, generatingfunctionology, 2nd edition, which is available for free download here.
Example
Let's have $n=4$ (vertices) and $k=3$ (edges). Given my limited knowledge, I'm unable to actually calculate the number of graphs by using the formula above.
Can somebody please walk me through it? I was able to manually count 16 different graphs for this example.
Edit #1
I've found the formula for calculating the total number of simple labelled graphs:
$$binom{binom{n}2}m$$
(Handbook of Discrete and Combinatorial Mathematics, available here, Page 580)
The problem is that the number of graphs given by this formula (for the above example is $20$) also includes all the disconnected graphs.
graph-theory
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59
add a comment |
up vote
9
down vote
favorite
up vote
9
down vote
favorite
Given the number of vertices $n$ and the number of edges $k$, I need to calculate the number of possible non-isomorphic, simple, connected, labelled graphs.
My question is very similar to this one. Quoting the accepted answer:
This sequence of numbers is A001187 in the On-Line Encyclopedia of Integer Sequences. If $d_n$ is the number of labelled, connected, simple graphs on $n$ vertices, the numbers $d_n$ satisfy the recurrence
$$sum_kbinom{n}kkd_k2^{binom{n-k}2}=n2^{binom{n}2};$$
from which it’s possible to calculate $d_n$ for small values of $n$. This recurrence is derived as formula (3.10.2) in Herbert S. Wilf, generatingfunctionology, 2nd edition, which is available for free download here.
Example
Let's have $n=4$ (vertices) and $k=3$ (edges). Given my limited knowledge, I'm unable to actually calculate the number of graphs by using the formula above.
Can somebody please walk me through it? I was able to manually count 16 different graphs for this example.
Edit #1
I've found the formula for calculating the total number of simple labelled graphs:
$$binom{binom{n}2}m$$
(Handbook of Discrete and Combinatorial Mathematics, available here, Page 580)
The problem is that the number of graphs given by this formula (for the above example is $20$) also includes all the disconnected graphs.
graph-theory
Given the number of vertices $n$ and the number of edges $k$, I need to calculate the number of possible non-isomorphic, simple, connected, labelled graphs.
My question is very similar to this one. Quoting the accepted answer:
This sequence of numbers is A001187 in the On-Line Encyclopedia of Integer Sequences. If $d_n$ is the number of labelled, connected, simple graphs on $n$ vertices, the numbers $d_n$ satisfy the recurrence
$$sum_kbinom{n}kkd_k2^{binom{n-k}2}=n2^{binom{n}2};$$
from which it’s possible to calculate $d_n$ for small values of $n$. This recurrence is derived as formula (3.10.2) in Herbert S. Wilf, generatingfunctionology, 2nd edition, which is available for free download here.
Example
Let's have $n=4$ (vertices) and $k=3$ (edges). Given my limited knowledge, I'm unable to actually calculate the number of graphs by using the formula above.
Can somebody please walk me through it? I was able to manually count 16 different graphs for this example.
Edit #1
I've found the formula for calculating the total number of simple labelled graphs:
$$binom{binom{n}2}m$$
(Handbook of Discrete and Combinatorial Mathematics, available here, Page 580)
The problem is that the number of graphs given by this formula (for the above example is $20$) also includes all the disconnected graphs.
graph-theory
graph-theory
edited Apr 13 '17 at 12:21
Community♦
1
1
asked Dec 18 '14 at 0:14
Babicaa
4613
4613
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59
add a comment |
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
There is no analytic formula for the number of connected graphs given $n$ labeled nodes and $N$ edges. It has been known, however, since around $1860$ that for $n$ labeled nodes with $n-1$ edges (e.g. $4$ nodes and $3$ edges) the number of connected graphs is $n^{n-2}$.
For any graph of $n$ labeled nodes and $kgtbinom {n-1}2$ edges the graph is always connected and thus the number of connected graphs in that case is equal to the total number of graphs.
For any graph of $n$ labeled nodes and $Klt(n-1)$ edges the graph is never connected. So the number of connected graphs in that case is always $0$.
It is the connected graphs of $n$ labeled nodes with $(n-1)le klebinom{n-1}2$ edges that are non trivial. Carl Wilhelm Borchardt found the formula that we use for the case of $k=n-1$. Cayley popularized it by "expanding" the result.
I just recently found another case. I am currently writing the results now.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There is no analytic formula for the number of connected graphs given $n$ labeled nodes and $N$ edges. It has been known, however, since around $1860$ that for $n$ labeled nodes with $n-1$ edges (e.g. $4$ nodes and $3$ edges) the number of connected graphs is $n^{n-2}$.
For any graph of $n$ labeled nodes and $kgtbinom {n-1}2$ edges the graph is always connected and thus the number of connected graphs in that case is equal to the total number of graphs.
For any graph of $n$ labeled nodes and $Klt(n-1)$ edges the graph is never connected. So the number of connected graphs in that case is always $0$.
It is the connected graphs of $n$ labeled nodes with $(n-1)le klebinom{n-1}2$ edges that are non trivial. Carl Wilhelm Borchardt found the formula that we use for the case of $k=n-1$. Cayley popularized it by "expanding" the result.
I just recently found another case. I am currently writing the results now.
add a comment |
up vote
0
down vote
There is no analytic formula for the number of connected graphs given $n$ labeled nodes and $N$ edges. It has been known, however, since around $1860$ that for $n$ labeled nodes with $n-1$ edges (e.g. $4$ nodes and $3$ edges) the number of connected graphs is $n^{n-2}$.
For any graph of $n$ labeled nodes and $kgtbinom {n-1}2$ edges the graph is always connected and thus the number of connected graphs in that case is equal to the total number of graphs.
For any graph of $n$ labeled nodes and $Klt(n-1)$ edges the graph is never connected. So the number of connected graphs in that case is always $0$.
It is the connected graphs of $n$ labeled nodes with $(n-1)le klebinom{n-1}2$ edges that are non trivial. Carl Wilhelm Borchardt found the formula that we use for the case of $k=n-1$. Cayley popularized it by "expanding" the result.
I just recently found another case. I am currently writing the results now.
add a comment |
up vote
0
down vote
up vote
0
down vote
There is no analytic formula for the number of connected graphs given $n$ labeled nodes and $N$ edges. It has been known, however, since around $1860$ that for $n$ labeled nodes with $n-1$ edges (e.g. $4$ nodes and $3$ edges) the number of connected graphs is $n^{n-2}$.
For any graph of $n$ labeled nodes and $kgtbinom {n-1}2$ edges the graph is always connected and thus the number of connected graphs in that case is equal to the total number of graphs.
For any graph of $n$ labeled nodes and $Klt(n-1)$ edges the graph is never connected. So the number of connected graphs in that case is always $0$.
It is the connected graphs of $n$ labeled nodes with $(n-1)le klebinom{n-1}2$ edges that are non trivial. Carl Wilhelm Borchardt found the formula that we use for the case of $k=n-1$. Cayley popularized it by "expanding" the result.
I just recently found another case. I am currently writing the results now.
There is no analytic formula for the number of connected graphs given $n$ labeled nodes and $N$ edges. It has been known, however, since around $1860$ that for $n$ labeled nodes with $n-1$ edges (e.g. $4$ nodes and $3$ edges) the number of connected graphs is $n^{n-2}$.
For any graph of $n$ labeled nodes and $kgtbinom {n-1}2$ edges the graph is always connected and thus the number of connected graphs in that case is equal to the total number of graphs.
For any graph of $n$ labeled nodes and $Klt(n-1)$ edges the graph is never connected. So the number of connected graphs in that case is always $0$.
It is the connected graphs of $n$ labeled nodes with $(n-1)le klebinom{n-1}2$ edges that are non trivial. Carl Wilhelm Borchardt found the formula that we use for the case of $k=n-1$. Cayley popularized it by "expanding" the result.
I just recently found another case. I am currently writing the results now.
edited Mar 2 '17 at 22:41
user409521
answered Mar 2 '17 at 22:22
Kenyon L Coleman
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1072726%2fcounting-simple-connected-labeled-graphs-with-n-vertices-and-k-edges%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This should be what I'm looking for: oeis.org/A144161
– Babicaa
Dec 18 '14 at 13:26
No https: oeis.org/A144161
– dspyz
Aug 17 '15 at 20:28
It would appear that this MSE link is relevant.
– Marko Riedel
Dec 21 '17 at 21:59