graph-theory problem about outdegree and indegree












0












$begingroup$


Let $G$ be a directed graph with $n$ vertices.
Assume that if we forget the directions of the edges of $G$, then we obtain the complete undirected graph $K_n$.
Let $v_1, v_2, ldots, v_n$ be the $n$ vertices of $G$. Prove that:
$(od(v_1))^2+(od(v_2))^2+ cdots + (od(v_n))^2 = (id(v_1))^2+(id(v_2))^2+ cdots + (id(v_n))^2$
Here, "od" means "outdegree" and "id" means "indegree".










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
    $endgroup$
    – Graphth
    Oct 20 '12 at 15:24


















0












$begingroup$


Let $G$ be a directed graph with $n$ vertices.
Assume that if we forget the directions of the edges of $G$, then we obtain the complete undirected graph $K_n$.
Let $v_1, v_2, ldots, v_n$ be the $n$ vertices of $G$. Prove that:
$(od(v_1))^2+(od(v_2))^2+ cdots + (od(v_n))^2 = (id(v_1))^2+(id(v_2))^2+ cdots + (id(v_n))^2$
Here, "od" means "outdegree" and "id" means "indegree".










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
    $endgroup$
    – Graphth
    Oct 20 '12 at 15:24
















0












0








0





$begingroup$


Let $G$ be a directed graph with $n$ vertices.
Assume that if we forget the directions of the edges of $G$, then we obtain the complete undirected graph $K_n$.
Let $v_1, v_2, ldots, v_n$ be the $n$ vertices of $G$. Prove that:
$(od(v_1))^2+(od(v_2))^2+ cdots + (od(v_n))^2 = (id(v_1))^2+(id(v_2))^2+ cdots + (id(v_n))^2$
Here, "od" means "outdegree" and "id" means "indegree".










share|cite|improve this question











$endgroup$




Let $G$ be a directed graph with $n$ vertices.
Assume that if we forget the directions of the edges of $G$, then we obtain the complete undirected graph $K_n$.
Let $v_1, v_2, ldots, v_n$ be the $n$ vertices of $G$. Prove that:
$(od(v_1))^2+(od(v_2))^2+ cdots + (od(v_n))^2 = (id(v_1))^2+(id(v_2))^2+ cdots + (id(v_n))^2$
Here, "od" means "outdegree" and "id" means "indegree".







graph-theory directed-graphs






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Feb 3 at 5:53









darij grinberg

11.5k33168




11.5k33168










asked Oct 20 '12 at 15:14









genigeni

5429




5429








  • 1




    $begingroup$
    This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
    $endgroup$
    – Graphth
    Oct 20 '12 at 15:24
















  • 1




    $begingroup$
    This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
    $endgroup$
    – Graphth
    Oct 20 '12 at 15:24










1




1




$begingroup$
This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
$endgroup$
– Graphth
Oct 20 '12 at 15:24






$begingroup$
This is the 4th graph theory problem (one you deleted) you've asked about in less than 1 day. There's nothing wrong with asking questions, but it gets to the point where it seems like you're just putting up your whole homework. So, if you want help, please tell us what you have attempted first.
$endgroup$
– Graphth
Oct 20 '12 at 15:24












1 Answer
1






active

oldest

votes


















2












$begingroup$

(I prefer to use $deg_o$ and $deg_i$ for the out-degree and in-degree.)



HINT: Let the vertices be $v_1,dots,v_n$; you want to prove that $$sum_{k=1}^nbig(deg_o(v_k)big)^2=sum_{k=1}^nbig(deg_i(v_k)big)^2;,$$ or, equivalently, that $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=0;.$$



Now $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)Big(deg_o(v_k)+deg_i(v_k)Big);,$$ and since the undirected graph is $K_n$, you know exactly what $deg_o(v_k)+deg_i(v_k)$ is. You should now be able to reduce the problem to evaluating the sum



$$sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)=sum_{k=1}^ndeg_o(v_k)-sum_{k=1}^ndeg_i(v_k);,$$ which is very easy if you just think about what that last difference of sums really represents.






share|cite|improve this answer











$endgroup$














    Your Answer








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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f217442%2fgraph-theory-problem-about-outdegree-and-indegree%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









    2












    $begingroup$

    (I prefer to use $deg_o$ and $deg_i$ for the out-degree and in-degree.)



    HINT: Let the vertices be $v_1,dots,v_n$; you want to prove that $$sum_{k=1}^nbig(deg_o(v_k)big)^2=sum_{k=1}^nbig(deg_i(v_k)big)^2;,$$ or, equivalently, that $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=0;.$$



    Now $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)Big(deg_o(v_k)+deg_i(v_k)Big);,$$ and since the undirected graph is $K_n$, you know exactly what $deg_o(v_k)+deg_i(v_k)$ is. You should now be able to reduce the problem to evaluating the sum



    $$sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)=sum_{k=1}^ndeg_o(v_k)-sum_{k=1}^ndeg_i(v_k);,$$ which is very easy if you just think about what that last difference of sums really represents.






    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      (I prefer to use $deg_o$ and $deg_i$ for the out-degree and in-degree.)



      HINT: Let the vertices be $v_1,dots,v_n$; you want to prove that $$sum_{k=1}^nbig(deg_o(v_k)big)^2=sum_{k=1}^nbig(deg_i(v_k)big)^2;,$$ or, equivalently, that $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=0;.$$



      Now $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)Big(deg_o(v_k)+deg_i(v_k)Big);,$$ and since the undirected graph is $K_n$, you know exactly what $deg_o(v_k)+deg_i(v_k)$ is. You should now be able to reduce the problem to evaluating the sum



      $$sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)=sum_{k=1}^ndeg_o(v_k)-sum_{k=1}^ndeg_i(v_k);,$$ which is very easy if you just think about what that last difference of sums really represents.






      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        (I prefer to use $deg_o$ and $deg_i$ for the out-degree and in-degree.)



        HINT: Let the vertices be $v_1,dots,v_n$; you want to prove that $$sum_{k=1}^nbig(deg_o(v_k)big)^2=sum_{k=1}^nbig(deg_i(v_k)big)^2;,$$ or, equivalently, that $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=0;.$$



        Now $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)Big(deg_o(v_k)+deg_i(v_k)Big);,$$ and since the undirected graph is $K_n$, you know exactly what $deg_o(v_k)+deg_i(v_k)$ is. You should now be able to reduce the problem to evaluating the sum



        $$sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)=sum_{k=1}^ndeg_o(v_k)-sum_{k=1}^ndeg_i(v_k);,$$ which is very easy if you just think about what that last difference of sums really represents.






        share|cite|improve this answer











        $endgroup$



        (I prefer to use $deg_o$ and $deg_i$ for the out-degree and in-degree.)



        HINT: Let the vertices be $v_1,dots,v_n$; you want to prove that $$sum_{k=1}^nbig(deg_o(v_k)big)^2=sum_{k=1}^nbig(deg_i(v_k)big)^2;,$$ or, equivalently, that $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=0;.$$



        Now $$sum_{k=1}^nleft(big(deg_o(v_k)big)^2-big(deg_i(v_k)big)^2right)=sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)Big(deg_o(v_k)+deg_i(v_k)Big);,$$ and since the undirected graph is $K_n$, you know exactly what $deg_o(v_k)+deg_i(v_k)$ is. You should now be able to reduce the problem to evaluating the sum



        $$sum_{k=1}^nBig(deg_o(v_k)-deg_i(v_k)Big)=sum_{k=1}^ndeg_o(v_k)-sum_{k=1}^ndeg_i(v_k);,$$ which is very easy if you just think about what that last difference of sums really represents.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Feb 3 at 5:54









        darij grinberg

        11.5k33168




        11.5k33168










        answered Oct 20 '12 at 15:30









        Brian M. ScottBrian M. Scott

        461k40518920




        461k40518920






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f217442%2fgraph-theory-problem-about-outdegree-and-indegree%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

            How to fix TextFormField cause rebuild widget in Flutter

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