Combinatorica Package >

NumberOfKPaths

NumberOfKPaths[g, v, k]
returns a sorted list that contains the number of paths of length k to different vertices of g from v.
NumberOfKPaths[al, v, k]
behaves identically, except that it takes an adjacency list al as input.
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team