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.
更多信息和选项
- 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`"].
范例
基本范例 (2)
Neighborhood has been superseded by NeighborhoodGraph:
Wolfram Research (2012),Neighborhood,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.
文本
Wolfram Research (2012),Neighborhood,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.
CMS
Wolfram 语言. 2012. "Neighborhood." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html.
APA
Wolfram 语言. (2012). Neighborhood. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/Neighborhood.html 年