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


constructs an adjacency list representation for graph g.


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.

See Also

AdjacencyList  FromAdjacencyLists  ToOrderedPairs