Combinatorica`
Combinatorica`

Neighborhood

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

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

Examples

Basic Examples  (2)

Neighborhood has been superseded by NeighborhoodGraph:

Wolfram Research (2012), Neighborhood, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.

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

BibTeX

@misc{reference.wolfram_2024_neighborhood, author="Wolfram Research", title="{Neighborhood}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_neighborhood, organization={Wolfram Research}, title={Neighborhood}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html}, note=[Accessed: 18-November-2024 ]}