How can I find the count of all possible paths between the 1st node and all other nodes in a directed graph?Undirected graph 1 degree checkingHow are vertices connected in a Johnson graph?How to get the directed line graph of the complete digraph?Vertex connectivity and edge connectivity of this graphHow do I predict the next sequence in this sequence?Proof that deleting a certain node in a graph where two nodes have a path of length greater than n/2 destroys the path between the two nodes.Directed graph: how to symmetrically link all nodes?How to calculate number of possible directed graphs given e edgesIndependence number of a graph based on $k$-permutations of $n$Path / Graph problem with X nodes looking for Y paths with the most similar length.

What is the oldest European royal house?

Why do we call complex numbers “numbers” but we don’t consider 2-vectors numbers?

Professor forcing me to attend a conference, I can't afford even with 50% funding

Insult for someone who "doesn't know anything"

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

A vote on the Brexit backstop

I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?

How to recover against Snake as a heavyweight character?

Is this Paypal Github SDK reference really a dangerous site?

Create chunks from an array

What does it take to become a wilderness skills guide as a business?

How do you make a gun that shoots melee weapons and/or swords?

I am the person who abides by rules but breaks the rules . Who am I

If nine coins are tossed, what is the probability that the number of heads is even?

ESPP--any reason not to go all in?

Why isn't P and P/poly trivially the same?

An Undercover Army

How do I align tablenotes in a threeparttable

Giving a talk in my old university, how prominently should I tell students my salary?

What is better: yes / no radio, or simple checkbox?

After Brexit, will the EU recognize British passports that are valid for more than ten years?

Why is my explanation wrong?

How does a sound wave propagate?

Is the differential, dp, exact or not?



How can I find the count of all possible paths between the 1st node and all other nodes in a directed graph?


Undirected graph 1 degree checkingHow are vertices connected in a Johnson graph?How to get the directed line graph of the complete digraph?Vertex connectivity and edge connectivity of this graphHow do I predict the next sequence in this sequence?Proof that deleting a certain node in a graph where two nodes have a path of length greater than n/2 destroys the path between the two nodes.Directed graph: how to symmetrically link all nodes?How to calculate number of possible directed graphs given e edgesIndependence number of a graph based on $k$-permutations of $n$Path / Graph problem with X nodes looking for Y paths with the most similar length.













1












$begingroup$


I want the most efficient algorithm for this problem .



I only want to count all simple paths between the following nodes : - [1,2],[1,3]......[1,n] .



Finally, I want to add them all .



(None of the path should have repeated nodes/cycle(s) )



Constraints : -



1) Every node may only be connected to at most 4 other node(s) which are strictly adjacent, the 'i-th' node will only be connected to either i+1,i+2,i-1,i-2 numbered node in the graph.



2)Graph can contain cycles .



What is the best time complexity I can achieve for this problem?



Example : - 4 nodes , 6 edges : -



(1,2)



(2,1)



(2,4)



(2,3)



(3,4)



(3,2)



(4,3)



Output : - [1,1] + [1,2] + [1,3] + [1,4] = 1 + 1 + 2 + 2 = 6 :)










share|cite|improve this question









New contributor




Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$
















    1












    $begingroup$


    I want the most efficient algorithm for this problem .



    I only want to count all simple paths between the following nodes : - [1,2],[1,3]......[1,n] .



    Finally, I want to add them all .



    (None of the path should have repeated nodes/cycle(s) )



    Constraints : -



    1) Every node may only be connected to at most 4 other node(s) which are strictly adjacent, the 'i-th' node will only be connected to either i+1,i+2,i-1,i-2 numbered node in the graph.



    2)Graph can contain cycles .



    What is the best time complexity I can achieve for this problem?



    Example : - 4 nodes , 6 edges : -



    (1,2)



    (2,1)



    (2,4)



    (2,3)



    (3,4)



    (3,2)



    (4,3)



    Output : - [1,1] + [1,2] + [1,3] + [1,4] = 1 + 1 + 2 + 2 = 6 :)










    share|cite|improve this question









    New contributor




    Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$














      1












      1








      1


      1



      $begingroup$


      I want the most efficient algorithm for this problem .



      I only want to count all simple paths between the following nodes : - [1,2],[1,3]......[1,n] .



      Finally, I want to add them all .



      (None of the path should have repeated nodes/cycle(s) )



      Constraints : -



      1) Every node may only be connected to at most 4 other node(s) which are strictly adjacent, the 'i-th' node will only be connected to either i+1,i+2,i-1,i-2 numbered node in the graph.



      2)Graph can contain cycles .



      What is the best time complexity I can achieve for this problem?



      Example : - 4 nodes , 6 edges : -



      (1,2)



      (2,1)



      (2,4)



      (2,3)



      (3,4)



      (3,2)



      (4,3)



      Output : - [1,1] + [1,2] + [1,3] + [1,4] = 1 + 1 + 2 + 2 = 6 :)










      share|cite|improve this question









      New contributor




      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I want the most efficient algorithm for this problem .



      I only want to count all simple paths between the following nodes : - [1,2],[1,3]......[1,n] .



      Finally, I want to add them all .



      (None of the path should have repeated nodes/cycle(s) )



      Constraints : -



      1) Every node may only be connected to at most 4 other node(s) which are strictly adjacent, the 'i-th' node will only be connected to either i+1,i+2,i-1,i-2 numbered node in the graph.



      2)Graph can contain cycles .



      What is the best time complexity I can achieve for this problem?



      Example : - 4 nodes , 6 edges : -



      (1,2)



      (2,1)



      (2,4)



      (2,3)



      (3,4)



      (3,2)



      (4,3)



      Output : - [1,1] + [1,2] + [1,3] + [1,4] = 1 + 1 + 2 + 2 = 6 :)







      graph-theory






      share|cite|improve this question









      New contributor




      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|cite|improve this question









      New contributor




      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|cite|improve this question




      share|cite|improve this question








      edited 14 hours ago







      Firex secred













      New contributor




      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 15 hours ago









      Firex secredFirex secred

      112




      112




      New contributor




      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Firex secred is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          0






          active

          oldest

          votes











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



          );






          Firex secred is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3139873%2fhow-can-i-find-the-count-of-all-possible-paths-between-the-1st-node-and-all-othe%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Firex secred is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Firex secred is a new contributor. Be nice, and check out our Code of Conduct.












          Firex secred is a new contributor. Be nice, and check out our Code of Conduct.











          Firex secred is a new contributor. Be nice, and check out our Code of Conduct.














          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%2f3139873%2fhow-can-i-find-the-count-of-all-possible-paths-between-the-1st-node-and-all-othe%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

          Moe incest case Sentencing See also References Navigation menu"'Australian Josef Fritzl' fathered four children by daughter""Small town recoils in horror at 'Australian Fritzl' incest case""Victorian rape allegations echo Fritzl case - Just In (Australian Broadcasting Corporation)""Incest father jailed for 22 years""'Australian Fritzl' sentenced to 22 years in prison for abusing daughter for three decades""RSJ v The Queen"

          Who is our nearest planetary neighbor, on average?Santa Claus flies to the South PoleSeven Spheres of Unequal Mass, a weighing problem with a twistDescribe a large integerFast Mental Calculation of $7.5^7$Math in Space (without the help of celebrities)Find the value of $bigstar$: Puzzle 8 - InequalityWho drinks beer while running anyway?A Crucial DeliveryRanking And AverageHow long will my money last at roulette?

          Daza language Contents Vocabulary Phonology References External links Navigation menudaza1242Daza"Dazaga"eeee178086576