Combinatorica`
Combinatorica`

ToAdjacencyLists

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

ToAdjacencyLists[g]

constructs an adjacency list representation for graph g.

ToAdjacencyLists[g,EdgeWeight]

returns an adjacency list representation along with edge weights.

更多信息和选项

  • ToAdjacencyLists functionality is now available in the built-in Wolfram Language function AdjacencyList.
  • To use ToAdjacencyLists, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
  • An option called Type that takes on values All or Simple can be given.
  • Type->All is the default setting of the option, and this permits self-loops and multiple edges to be reported in the adjacency lists.
  • Type->Simple deletes self-loops and multiple edges from the constructed adjacency lists.
Wolfram Research (2012),ToAdjacencyLists,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyLists.html.

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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