Combinatorica Package >

ToAdjacencyMatrix

ToAdjacencyMatrix[g]
constructs an adjacency matrix representation for graph .
ToAdjacencyMatrix[g, EdgeWeight]
returns edge weights as entries of the adjacency matrix with Infinity representing missing edges.
  • An option that takes on values All or can be used to affect the matrix constructed.
  • All is the default, and ignores any self-loops or multiple edges may have.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF