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.
Details and Options
- Neighborhood functionality is now available in the built-in Wolfram Language function NeighborhoodGraph.
- To use Neighborhood, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Examples
Basic Examples (2)
Neighborhood has been superseded by NeighborhoodGraph:
Text
Wolfram Research (2012), Neighborhood, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.
CMS
Wolfram Language. 2012. "Neighborhood." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.
APA
Wolfram Language. (2012). Neighborhood. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html