MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

DiscreteMath question : ToAdjacencyMatrix and FromAdjacencyMatrix


Let us set :

paires = {{1, 2}, {2, 3}, {2, 4}, {4, 4}}

The graph is given by :

g = FromOrderedPairs[paires]; 

ShowGraph[g, VertexLabel -> {1, 2, 3, 4}]

The matrix representation of this relation is given by :

matrice = ToAdjacencyMatrix[g]

Why does ToAdjacencyMatrix[FromAdjacencyMatrix[matrice]] don't give the
same matrix?


Regards
 
F.Jaccard


  • Prev by Date: Re: Printing Lists to file without {}
  • Next by Date: Re: display of input and output in textbook form
  • Previous by thread: Help on simplifying symbolic sum?
  • Next by thread: Re: DiscreteMath question : ToAdjacencyMatrix and FromAdjacencyMatrix