Combinatorica`
Combinatorica`

NumberOfKPaths

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

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.

Details

See Also

GraphPower  Invariants

Tutorials