Combinatorica`
Combinatorica`

ToAdjacencyMatrix

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

ToAdjacencyMatrix[g]

constructs an adjacency matrix representation for graph g.

ToAdjacencyMatrix[g,EdgeWeight]

returns edge weights as entries of the adjacency matrix with Infinity representing missing edges.

Details

  • ToAdjacencyMatrix functionality is now available in the built-in Wolfram Language function AdjacencyMatrix.
  • To use ToAdjacencyMatrix, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
  • An option Type that takes on values All or Simple can be used to affect the matrix constructed.
  • Type->All is the default, and Type->Simple ignores any self-loops or multiple edges g may have.
Wolfram Research (2012), ToAdjacencyMatrix, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyMatrix.html.

Text

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

BibTeX

@misc{reference.wolfram_2021_toadjacencymatrix, author="Wolfram Research", title="{ToAdjacencyMatrix}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyMatrix.html}", note=[Accessed: 26-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_toadjacencymatrix, organization={Wolfram Research}, title={ToAdjacencyMatrix}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyMatrix.html}, note=[Accessed: 26-September-2021 ]}

CMS

Wolfram Language. 2012. "ToAdjacencyMatrix." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyMatrix.html.

APA

Wolfram Language. (2012). ToAdjacencyMatrix. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/ToAdjacencyMatrix.html