Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.5K Views
|
5 Replies
|
1 Total Like
View groups...
Share
Share this post:

Number of paths from Start to End through each node

Posted 5 years ago
POSTED BY: Les Servi
5 Replies
Posted 5 years ago
POSTED BY: Rohit Namjoshi
Posted 5 years ago

To clarify my question, for a given vertex, i I want to know how many paths from Start to End exists which goes through vertex i.

I see that FindPath can list all of the paths for me but I don't know how to count the number of the paths which contain i.

Also, what I really want to know is which nodes have the highest count, ie I want to do this for all nodes, i, and then sort the count.

POSTED BY: Les Servi
Posted 5 years ago

What you wrote is true if the Start vertex and the Edge vertex are part of the same edge

POSTED BY: Les Servi
Posted 5 years ago

Thanks for your reply but ... for an acyclic graph

(1) there are typically many paths between two vertices, (See FindPath documentation of Mathematics) (2) Most of these paths will not be the shortest path

POSTED BY: Les Servi
POSTED BY: Robert Nachbar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard