MathGroup Archive 2007

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

Search the Archive

Re: problem For with GraphPlot


g = {1 -> 2, 2 -> 1, 3 -> 1, 3 -> 2, 4 -> 1, 4 -> 2, 4 -> 4};

As in the Documentation Center examples for For, use Print

For[i = 0, i < 4, i++, Print[GraphPlot[g]]]

Table[GraphPlot[g], {4}]


Bob Hanlon

---- Christophe Lucarz <christophe.lucarz at epfl.ch> wrote: 
> Hello everybody,
> 
> When I do this : GraphPlot[g], it draws correctly the graph
> When I want to iterate the drawing of the same graph 4 times, it doesn't 
> work : For[i = 0, i < 4, i++, GraphPlot[g]]
> 
> Any idea?
> Thx
> Christophe 
> 
> 
> 



  • Prev by Date: Re: ComplexExpand in Mathematica 5.2 and 6
  • Next by Date: Re: save as pdf in version 6
  • Previous by thread: problem For with GraphPlot
  • Next by thread: Re: problem For with GraphPlot