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.
$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 :)
graph-theory
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$
add a comment |
$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 :)
graph-theory
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$
add a comment |
$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 :)
graph-theory
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
graph-theory
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.
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.
add a comment |
add a comment |
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.
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%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.
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.
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%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
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