Prove that for every disconnected graph $G = (V, E)$ it holds $|E| leq frac{1}{2} (|V | − 1)(|V | − 2)$.











up vote
0
down vote

favorite












I have just started my journey into the field of graph theory. I wish to show the following result:




Prove that for every disconnected graph $G = (V, E)$ it holds
$|E| leq frac{1}{2}
(|V| − 1)(|V | − 2)$
.




I think the best way to tackle this, is via induction. I want to start with the smallest possible graph you can have, which would be on $2$ vertices, so $n=2$
We know that there are $0$ edges and thus:
$$|E|=0 leq frac{1}{2} (2-1)(2-2)=0. $$
So our base case holds. Now the difficulty would be to assume we have some arbitrary graph for which this formula holds, to then prove it holds for all graphs bigger than this. I cannot possibly construct all bigger graphs. I am guessing there is some different strategy in graph theory to induction proofs.



This result could also follow easily from the handshaking lemma if I assume that $n-1$ vertices have at most degree $n-2$. If someone has an alternative suggestion, please let me know.










share|cite|improve this question
























  • In your base case, you meant (2-2) instead of (2-0) right?
    – mathnoob
    yesterday










  • yes indeed, you are correct.
    – WesleyGroupshaveFeelingsToo
    yesterday















up vote
0
down vote

favorite












I have just started my journey into the field of graph theory. I wish to show the following result:




Prove that for every disconnected graph $G = (V, E)$ it holds
$|E| leq frac{1}{2}
(|V| − 1)(|V | − 2)$
.




I think the best way to tackle this, is via induction. I want to start with the smallest possible graph you can have, which would be on $2$ vertices, so $n=2$
We know that there are $0$ edges and thus:
$$|E|=0 leq frac{1}{2} (2-1)(2-2)=0. $$
So our base case holds. Now the difficulty would be to assume we have some arbitrary graph for which this formula holds, to then prove it holds for all graphs bigger than this. I cannot possibly construct all bigger graphs. I am guessing there is some different strategy in graph theory to induction proofs.



This result could also follow easily from the handshaking lemma if I assume that $n-1$ vertices have at most degree $n-2$. If someone has an alternative suggestion, please let me know.










share|cite|improve this question
























  • In your base case, you meant (2-2) instead of (2-0) right?
    – mathnoob
    yesterday










  • yes indeed, you are correct.
    – WesleyGroupshaveFeelingsToo
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have just started my journey into the field of graph theory. I wish to show the following result:




Prove that for every disconnected graph $G = (V, E)$ it holds
$|E| leq frac{1}{2}
(|V| − 1)(|V | − 2)$
.




I think the best way to tackle this, is via induction. I want to start with the smallest possible graph you can have, which would be on $2$ vertices, so $n=2$
We know that there are $0$ edges and thus:
$$|E|=0 leq frac{1}{2} (2-1)(2-2)=0. $$
So our base case holds. Now the difficulty would be to assume we have some arbitrary graph for which this formula holds, to then prove it holds for all graphs bigger than this. I cannot possibly construct all bigger graphs. I am guessing there is some different strategy in graph theory to induction proofs.



This result could also follow easily from the handshaking lemma if I assume that $n-1$ vertices have at most degree $n-2$. If someone has an alternative suggestion, please let me know.










share|cite|improve this question















I have just started my journey into the field of graph theory. I wish to show the following result:




Prove that for every disconnected graph $G = (V, E)$ it holds
$|E| leq frac{1}{2}
(|V| − 1)(|V | − 2)$
.




I think the best way to tackle this, is via induction. I want to start with the smallest possible graph you can have, which would be on $2$ vertices, so $n=2$
We know that there are $0$ edges and thus:
$$|E|=0 leq frac{1}{2} (2-1)(2-2)=0. $$
So our base case holds. Now the difficulty would be to assume we have some arbitrary graph for which this formula holds, to then prove it holds for all graphs bigger than this. I cannot possibly construct all bigger graphs. I am guessing there is some different strategy in graph theory to induction proofs.



This result could also follow easily from the handshaking lemma if I assume that $n-1$ vertices have at most degree $n-2$. If someone has an alternative suggestion, please let me know.







graph-theory induction






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday

























asked 2 days ago









WesleyGroupshaveFeelingsToo

821218




821218












  • In your base case, you meant (2-2) instead of (2-0) right?
    – mathnoob
    yesterday










  • yes indeed, you are correct.
    – WesleyGroupshaveFeelingsToo
    yesterday


















  • In your base case, you meant (2-2) instead of (2-0) right?
    – mathnoob
    yesterday










  • yes indeed, you are correct.
    – WesleyGroupshaveFeelingsToo
    yesterday
















In your base case, you meant (2-2) instead of (2-0) right?
– mathnoob
yesterday




In your base case, you meant (2-2) instead of (2-0) right?
– mathnoob
yesterday












yes indeed, you are correct.
– WesleyGroupshaveFeelingsToo
yesterday




yes indeed, you are correct.
– WesleyGroupshaveFeelingsToo
yesterday










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










Hint: It might be easier to not use induction.



Suppose $G = (V,E)$ is a disconnected graph. Then, we can split $G$ into two disconnected subgraphs $G_1 = (V_1,E_1)$ and $G_2 = (V_2,E_2)$ with $|V_1| ge 1$, $|V_2| ge 1$.



Trivially, $|V| = |V_1|+|V_2|$ and $|E| = |E_1|+|E_2|$.



Also, $|E_1| le dbinom{|V_1|}{2}$ and $|E_2| le dbinom{|V_2|}{2} = dbinom{|V|-|V_1|}{2}$.



Can you use the above to show that $|E| = |E_1|+|E_2| le dbinom{|V|-1}{2}$?






share|cite|improve this answer





















  • By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
    – WesleyGroupshaveFeelingsToo
    2 days ago


















up vote
1
down vote













Say part one has $x$ vertices and other $n-x$. Then we have at most $${xchoose 2}+{n-xchoose 2}$$ edges, which is clearly $$leq {n-1choose 2}$$






share|cite|improve this answer





















    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',
    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
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005377%2fprove-that-for-every-disconnected-graph-g-v-e-it-holds-e-leq-frac1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    Hint: It might be easier to not use induction.



    Suppose $G = (V,E)$ is a disconnected graph. Then, we can split $G$ into two disconnected subgraphs $G_1 = (V_1,E_1)$ and $G_2 = (V_2,E_2)$ with $|V_1| ge 1$, $|V_2| ge 1$.



    Trivially, $|V| = |V_1|+|V_2|$ and $|E| = |E_1|+|E_2|$.



    Also, $|E_1| le dbinom{|V_1|}{2}$ and $|E_2| le dbinom{|V_2|}{2} = dbinom{|V|-|V_1|}{2}$.



    Can you use the above to show that $|E| = |E_1|+|E_2| le dbinom{|V|-1}{2}$?






    share|cite|improve this answer





















    • By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
      – WesleyGroupshaveFeelingsToo
      2 days ago















    up vote
    1
    down vote



    accepted










    Hint: It might be easier to not use induction.



    Suppose $G = (V,E)$ is a disconnected graph. Then, we can split $G$ into two disconnected subgraphs $G_1 = (V_1,E_1)$ and $G_2 = (V_2,E_2)$ with $|V_1| ge 1$, $|V_2| ge 1$.



    Trivially, $|V| = |V_1|+|V_2|$ and $|E| = |E_1|+|E_2|$.



    Also, $|E_1| le dbinom{|V_1|}{2}$ and $|E_2| le dbinom{|V_2|}{2} = dbinom{|V|-|V_1|}{2}$.



    Can you use the above to show that $|E| = |E_1|+|E_2| le dbinom{|V|-1}{2}$?






    share|cite|improve this answer





















    • By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
      – WesleyGroupshaveFeelingsToo
      2 days ago













    up vote
    1
    down vote



    accepted







    up vote
    1
    down vote



    accepted






    Hint: It might be easier to not use induction.



    Suppose $G = (V,E)$ is a disconnected graph. Then, we can split $G$ into two disconnected subgraphs $G_1 = (V_1,E_1)$ and $G_2 = (V_2,E_2)$ with $|V_1| ge 1$, $|V_2| ge 1$.



    Trivially, $|V| = |V_1|+|V_2|$ and $|E| = |E_1|+|E_2|$.



    Also, $|E_1| le dbinom{|V_1|}{2}$ and $|E_2| le dbinom{|V_2|}{2} = dbinom{|V|-|V_1|}{2}$.



    Can you use the above to show that $|E| = |E_1|+|E_2| le dbinom{|V|-1}{2}$?






    share|cite|improve this answer












    Hint: It might be easier to not use induction.



    Suppose $G = (V,E)$ is a disconnected graph. Then, we can split $G$ into two disconnected subgraphs $G_1 = (V_1,E_1)$ and $G_2 = (V_2,E_2)$ with $|V_1| ge 1$, $|V_2| ge 1$.



    Trivially, $|V| = |V_1|+|V_2|$ and $|E| = |E_1|+|E_2|$.



    Also, $|E_1| le dbinom{|V_1|}{2}$ and $|E_2| le dbinom{|V_2|}{2} = dbinom{|V|-|V_1|}{2}$.



    Can you use the above to show that $|E| = |E_1|+|E_2| le dbinom{|V|-1}{2}$?







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered 2 days ago









    JimmyK4542

    39.8k245105




    39.8k245105












    • By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
      – WesleyGroupshaveFeelingsToo
      2 days ago


















    • By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
      – WesleyGroupshaveFeelingsToo
      2 days ago
















    By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
    – WesleyGroupshaveFeelingsToo
    2 days ago




    By $binom{|V_1|}{2}$ you probably mean the amount of ways we can form edges with the available vertices.
    – WesleyGroupshaveFeelingsToo
    2 days ago










    up vote
    1
    down vote













    Say part one has $x$ vertices and other $n-x$. Then we have at most $${xchoose 2}+{n-xchoose 2}$$ edges, which is clearly $$leq {n-1choose 2}$$






    share|cite|improve this answer

























      up vote
      1
      down vote













      Say part one has $x$ vertices and other $n-x$. Then we have at most $${xchoose 2}+{n-xchoose 2}$$ edges, which is clearly $$leq {n-1choose 2}$$






      share|cite|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        Say part one has $x$ vertices and other $n-x$. Then we have at most $${xchoose 2}+{n-xchoose 2}$$ edges, which is clearly $$leq {n-1choose 2}$$






        share|cite|improve this answer












        Say part one has $x$ vertices and other $n-x$. Then we have at most $${xchoose 2}+{n-xchoose 2}$$ edges, which is clearly $$leq {n-1choose 2}$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered 2 days ago









        greedoid

        34.3k114488




        34.3k114488






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005377%2fprove-that-for-every-disconnected-graph-g-v-e-it-holds-e-leq-frac1%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter