ToOrderedPairs

ToOrderedPairs[g]
constructs a list of ordered pairs representing the edges of the graph .

DetailsDetails

  • To use , you first need to load the Combinatorica Package using Needs["Combinatorica`"].
  • If is undirected each edge is interpreted as two ordered pairs.
  • An option called that takes on values or All can be used to affect the constructed representation.
  • forces the removal of multiple edges and self-loops. Type->All keeps all information and is the default option.
New to Mathematica? Find your learning path »
Have a question? Ask support »