MathGroup Archive 2007

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

Search the Archive

Re: problem For with GraphPlot


Christophe Lucarz 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 

Hi Christophe,

Wrap your graph function within a *Print* command as in

g = {1 -> 2, 2 -> 1, 3 -> 1, 3 -> 2, 4 -> 1, 4 -> 2, 4 -> 4};
For[i = 0, i < 4, i++, Print[GraphPlot[g]]]
Table[Print[GraphPlot[g]], {4}];
Do[Print[GraphPlot[g]], {4}]

Regards,
Jean-Marc


  • Prev by Date: Re: save as pdf in version 6
  • Next by Date: Re: Inequalities
  • Previous by thread: Re: problem For with GraphPlot
  • Next by thread: Re: problem For with GraphPlot