MathGroup Archive 2006

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

Search the Archive

DiscreteMath question : ToAdjacencyMatrix and FromAdjacencyMatrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66017] DiscreteMath question : ToAdjacencyMatrix and FromAdjacencyMatrix
  • From: "Jaccard Florian" <Florian.Jaccard at he-arc.ch>
  • Date: Thu, 27 Apr 2006 02:26:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com
  • Thread-index: AcZpJ8avWE6244LjSwS25KhrzDXj4Q==

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