Combinatorica Package >

Neighborhood

Neighborhood[g, v, k]
returns the subset of vertices in g that are at a distance of k or less from vertex v.
Neighborhood[al, v, k]
behaves identically, except that it takes as input an adjacency list al.
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team