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

constructs an adjacency matrix representation for graph .

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


  • ToAdjacencyMatrix functionality is now available in the built-in Wolfram Language function AdjacencyMatrix.
  • To use , you first need to load the Combinatorica Package using Needs["Combinatorica`"].
  • An option that takes on values All or can be used to affect the matrix constructed.
  • Type->All is the default, and ignores any self-loops or multiple edges may have.
Translate this page: