Combinatorica`
Combinatorica`

BreadthFirstTraversal

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

BreadthFirstTraversal[g,v]

performs a breadth-first traversal of graph g starting from vertex v, and gives the breadth-first numbers of the vertices.

BreadthFirstTraversal[g,v,Edge]

returns the edges of the graph that are traversed by breadth-first traversal.

BreadthFirstTraversal[g,v,Tree]

returns the breadth-first search tree.

BreadthFirstTraversal[g,v,Level]

returns the level number of the vertices.

更多信息和选项

范例

基本范例  (2)

BreadthFirstTraversal has been superseded by BreadthFirstScan:

Wolfram Research (2012),BreadthFirstTraversal,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/BreadthFirstTraversal.html.

文本

Wolfram Research (2012),BreadthFirstTraversal,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/BreadthFirstTraversal.html.

CMS

Wolfram 语言. 2012. "BreadthFirstTraversal." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/BreadthFirstTraversal.html.

APA

Wolfram 语言. (2012). BreadthFirstTraversal. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/BreadthFirstTraversal.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_breadthfirsttraversal, organization={Wolfram Research}, title={BreadthFirstTraversal}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/BreadthFirstTraversal.html}, note=[Accessed: 30-December-2024 ]}