MathGroup Archive 2010

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

Search the Archive

Re: Convert directed graph to undirected graph


gr1 = GraphPlot[{
   1 -> 2, 2 -> 1, 3 -> 1, 3 -> 2,
   4 -> 1, 4 -> 2, 4 -> 4},
  DirectedEdges -> True]

gr2 = gr1 /. Arrow -> Line


Bob Hanlon

---- Jon Harrop <usenet at ffconsultancy.com> wrote: 

=============
What is the recommended way of doing this in Mathematica?

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com



  • Prev by Date: Strange 26base enumeration
  • Next by Date: Re: Hatched shading?
  • Previous by thread: Convert directed graph to undirected graph
  • Next by thread: Re: Convert directed graph to undirected graph