Having No Directed Cycles Guarantees a Vertex of Zero Outdegree












1














Is it true that a directed graph with a finite number of vertices and with no directed cycles has at least one vertex whose out-degree is zero?



Here is my idea:



Suppose there is no vertex with out-degree zero, this implies there is an outgoing edge from each vertex. Suppose there are $n$ vertices then there must be $n$ edges since out-degree is greater than or equal to 1, but we can't have this since it creates a directed cycle. Hence, there must be a vertex whose out-degree is zero.



Is this correct? Can you provide a mathematical proof or counterexample?










share|cite|improve this question





























    1














    Is it true that a directed graph with a finite number of vertices and with no directed cycles has at least one vertex whose out-degree is zero?



    Here is my idea:



    Suppose there is no vertex with out-degree zero, this implies there is an outgoing edge from each vertex. Suppose there are $n$ vertices then there must be $n$ edges since out-degree is greater than or equal to 1, but we can't have this since it creates a directed cycle. Hence, there must be a vertex whose out-degree is zero.



    Is this correct? Can you provide a mathematical proof or counterexample?










    share|cite|improve this question



























      1












      1








      1







      Is it true that a directed graph with a finite number of vertices and with no directed cycles has at least one vertex whose out-degree is zero?



      Here is my idea:



      Suppose there is no vertex with out-degree zero, this implies there is an outgoing edge from each vertex. Suppose there are $n$ vertices then there must be $n$ edges since out-degree is greater than or equal to 1, but we can't have this since it creates a directed cycle. Hence, there must be a vertex whose out-degree is zero.



      Is this correct? Can you provide a mathematical proof or counterexample?










      share|cite|improve this question















      Is it true that a directed graph with a finite number of vertices and with no directed cycles has at least one vertex whose out-degree is zero?



      Here is my idea:



      Suppose there is no vertex with out-degree zero, this implies there is an outgoing edge from each vertex. Suppose there are $n$ vertices then there must be $n$ edges since out-degree is greater than or equal to 1, but we can't have this since it creates a directed cycle. Hence, there must be a vertex whose out-degree is zero.



      Is this correct? Can you provide a mathematical proof or counterexample?







      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 Nov 26 at 1:51









      Austin Mohr

      20k35097




      20k35097










      asked Nov 26 at 0:57









      thetraveller

      1515




      1515






















          2 Answers
          2






          active

          oldest

          votes


















          1














          You basically have the right idea, but I would organize it as a contraposition.



          Statement: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no directed cycles, then it has at least one vertex with outdegree zero.



          Contrapositive: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no vertex with outdegree zero, then it has a directed cycle.



          Proof (sketch): Start at any vertex. Since it's outdegree is not zero, you can travel along an edge. Your new position is also a vertex with nonzero outdegree, so you can travel along an edge. Keep travelling in this way (it's always possible, since every vertex has nonzero outdegree). Since $G$ is finite, you must eventually return to a vertex you've previously visited, which indicates the presence of a directed cycle.






          share|cite|improve this answer





















          • thanks for the detailed proof
            – thetraveller
            Nov 26 at 3:07



















          1














          Take the longest directed path in $G$. The end vertex of the path has the desired property.






          share|cite|improve this answer





















          • How do you know there is a longest directed path?
            – Henning Makholm
            Nov 26 at 2:43






          • 1




            It is a finite graph.
            – hbm
            Nov 26 at 5:15











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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3013656%2fhaving-no-directed-cycles-guarantees-a-vertex-of-zero-outdegree%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









          1














          You basically have the right idea, but I would organize it as a contraposition.



          Statement: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no directed cycles, then it has at least one vertex with outdegree zero.



          Contrapositive: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no vertex with outdegree zero, then it has a directed cycle.



          Proof (sketch): Start at any vertex. Since it's outdegree is not zero, you can travel along an edge. Your new position is also a vertex with nonzero outdegree, so you can travel along an edge. Keep travelling in this way (it's always possible, since every vertex has nonzero outdegree). Since $G$ is finite, you must eventually return to a vertex you've previously visited, which indicates the presence of a directed cycle.






          share|cite|improve this answer





















          • thanks for the detailed proof
            – thetraveller
            Nov 26 at 3:07
















          1














          You basically have the right idea, but I would organize it as a contraposition.



          Statement: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no directed cycles, then it has at least one vertex with outdegree zero.



          Contrapositive: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no vertex with outdegree zero, then it has a directed cycle.



          Proof (sketch): Start at any vertex. Since it's outdegree is not zero, you can travel along an edge. Your new position is also a vertex with nonzero outdegree, so you can travel along an edge. Keep travelling in this way (it's always possible, since every vertex has nonzero outdegree). Since $G$ is finite, you must eventually return to a vertex you've previously visited, which indicates the presence of a directed cycle.






          share|cite|improve this answer





















          • thanks for the detailed proof
            – thetraveller
            Nov 26 at 3:07














          1












          1








          1






          You basically have the right idea, but I would organize it as a contraposition.



          Statement: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no directed cycles, then it has at least one vertex with outdegree zero.



          Contrapositive: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no vertex with outdegree zero, then it has a directed cycle.



          Proof (sketch): Start at any vertex. Since it's outdegree is not zero, you can travel along an edge. Your new position is also a vertex with nonzero outdegree, so you can travel along an edge. Keep travelling in this way (it's always possible, since every vertex has nonzero outdegree). Since $G$ is finite, you must eventually return to a vertex you've previously visited, which indicates the presence of a directed cycle.






          share|cite|improve this answer












          You basically have the right idea, but I would organize it as a contraposition.



          Statement: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no directed cycles, then it has at least one vertex with outdegree zero.



          Contrapositive: Let $G$ be a directed graph with a finite number of vertices. If $G$ has no vertex with outdegree zero, then it has a directed cycle.



          Proof (sketch): Start at any vertex. Since it's outdegree is not zero, you can travel along an edge. Your new position is also a vertex with nonzero outdegree, so you can travel along an edge. Keep travelling in this way (it's always possible, since every vertex has nonzero outdegree). Since $G$ is finite, you must eventually return to a vertex you've previously visited, which indicates the presence of a directed cycle.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 26 at 1:46









          Austin Mohr

          20k35097




          20k35097












          • thanks for the detailed proof
            – thetraveller
            Nov 26 at 3:07


















          • thanks for the detailed proof
            – thetraveller
            Nov 26 at 3:07
















          thanks for the detailed proof
          – thetraveller
          Nov 26 at 3:07




          thanks for the detailed proof
          – thetraveller
          Nov 26 at 3:07











          1














          Take the longest directed path in $G$. The end vertex of the path has the desired property.






          share|cite|improve this answer





















          • How do you know there is a longest directed path?
            – Henning Makholm
            Nov 26 at 2:43






          • 1




            It is a finite graph.
            – hbm
            Nov 26 at 5:15
















          1














          Take the longest directed path in $G$. The end vertex of the path has the desired property.






          share|cite|improve this answer





















          • How do you know there is a longest directed path?
            – Henning Makholm
            Nov 26 at 2:43






          • 1




            It is a finite graph.
            – hbm
            Nov 26 at 5:15














          1












          1








          1






          Take the longest directed path in $G$. The end vertex of the path has the desired property.






          share|cite|improve this answer












          Take the longest directed path in $G$. The end vertex of the path has the desired property.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 26 at 2:37









          hbm

          957156




          957156












          • How do you know there is a longest directed path?
            – Henning Makholm
            Nov 26 at 2:43






          • 1




            It is a finite graph.
            – hbm
            Nov 26 at 5:15


















          • How do you know there is a longest directed path?
            – Henning Makholm
            Nov 26 at 2:43






          • 1




            It is a finite graph.
            – hbm
            Nov 26 at 5:15
















          How do you know there is a longest directed path?
          – Henning Makholm
          Nov 26 at 2:43




          How do you know there is a longest directed path?
          – Henning Makholm
          Nov 26 at 2:43




          1




          1




          It is a finite graph.
          – hbm
          Nov 26 at 5:15




          It is a finite graph.
          – hbm
          Nov 26 at 5:15


















          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.





          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3013656%2fhaving-no-directed-cycles-guarantees-a-vertex-of-zero-outdegree%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

          Le Mesnil-Réaume

          Ida-Boy-Ed-Garten

          web3.py web3.isConnected() returns false always