Minimum number of edges formula?
$begingroup$
Is there a formula of finding the minimum number of edges?
I know that for the maximum number of edges it is
$(n-k)(n-k+1)/2$ where $n$ is the number of vertices and $k$ is number of components.
I was reading online and some said $(n-1)(n-2)/2 +1$
however in my case I know there are $n=10$ vertices and $k=3$ components, hence the max number of edges is $28$.
If I apply the formula for min. found online I get $37$ edges which is clearly wrong.
graph-theory
$endgroup$
add a comment |
$begingroup$
Is there a formula of finding the minimum number of edges?
I know that for the maximum number of edges it is
$(n-k)(n-k+1)/2$ where $n$ is the number of vertices and $k$ is number of components.
I was reading online and some said $(n-1)(n-2)/2 +1$
however in my case I know there are $n=10$ vertices and $k=3$ components, hence the max number of edges is $28$.
If I apply the formula for min. found online I get $37$ edges which is clearly wrong.
graph-theory
$endgroup$
2
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
1
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21
add a comment |
$begingroup$
Is there a formula of finding the minimum number of edges?
I know that for the maximum number of edges it is
$(n-k)(n-k+1)/2$ where $n$ is the number of vertices and $k$ is number of components.
I was reading online and some said $(n-1)(n-2)/2 +1$
however in my case I know there are $n=10$ vertices and $k=3$ components, hence the max number of edges is $28$.
If I apply the formula for min. found online I get $37$ edges which is clearly wrong.
graph-theory
$endgroup$
Is there a formula of finding the minimum number of edges?
I know that for the maximum number of edges it is
$(n-k)(n-k+1)/2$ where $n$ is the number of vertices and $k$ is number of components.
I was reading online and some said $(n-1)(n-2)/2 +1$
however in my case I know there are $n=10$ vertices and $k=3$ components, hence the max number of edges is $28$.
If I apply the formula for min. found online I get $37$ edges which is clearly wrong.
graph-theory
graph-theory
edited Jan 30 at 18:11
Hidaw
asked Jan 30 at 18:09
HidawHidaw
460624
460624
2
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
1
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21
add a comment |
2
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
1
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21
2
2
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
1
1
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
To make a single component with $m$ vertices, you need $m-1$ edges. In your case, you need to have three components with $a,b,c$ vertices respectively, with $a+b+c=10$. It doesn't matter what you choose for $a,b,c$, in any case you need $$(a-1) + (b-1) + (c-1) = 10-3=7$$ edges to make such a graph.
So in general the formula is just $n-k$.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f3093896%2fminimum-number-of-edges-formula%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
To make a single component with $m$ vertices, you need $m-1$ edges. In your case, you need to have three components with $a,b,c$ vertices respectively, with $a+b+c=10$. It doesn't matter what you choose for $a,b,c$, in any case you need $$(a-1) + (b-1) + (c-1) = 10-3=7$$ edges to make such a graph.
So in general the formula is just $n-k$.
$endgroup$
add a comment |
$begingroup$
To make a single component with $m$ vertices, you need $m-1$ edges. In your case, you need to have three components with $a,b,c$ vertices respectively, with $a+b+c=10$. It doesn't matter what you choose for $a,b,c$, in any case you need $$(a-1) + (b-1) + (c-1) = 10-3=7$$ edges to make such a graph.
So in general the formula is just $n-k$.
$endgroup$
add a comment |
$begingroup$
To make a single component with $m$ vertices, you need $m-1$ edges. In your case, you need to have three components with $a,b,c$ vertices respectively, with $a+b+c=10$. It doesn't matter what you choose for $a,b,c$, in any case you need $$(a-1) + (b-1) + (c-1) = 10-3=7$$ edges to make such a graph.
So in general the formula is just $n-k$.
$endgroup$
To make a single component with $m$ vertices, you need $m-1$ edges. In your case, you need to have three components with $a,b,c$ vertices respectively, with $a+b+c=10$. It doesn't matter what you choose for $a,b,c$, in any case you need $$(a-1) + (b-1) + (c-1) = 10-3=7$$ edges to make such a graph.
So in general the formula is just $n-k$.
answered Jan 30 at 18:31
Nathaniel MayerNathaniel Mayer
1,863516
1,863516
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.
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%2f3093896%2fminimum-number-of-edges-formula%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
2
$begingroup$
Clarify? A graph can have no edges... What are n and k?
$endgroup$
– Nathaniel Mayer
Jan 30 at 18:11
1
$begingroup$
The minimum number of edges is $0$. If you know some other things about the graphs under consideration, they need to be included.
$endgroup$
– Greg Martin
Jan 30 at 18:20
$begingroup$
@GregMartin is a graph with zero edges considered simple graph? In my case I have 10vertices and 3 components is it correct to draw 5 vertices in one component, 3 vertices in the second component and 2 vertices in the third component?
$endgroup$
– Hidaw
Jan 30 at 18:21