Re: problem For with GraphPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg78054] Re: [mg78042] problem For with GraphPlot
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Fri, 22 Jun 2007 06:32:05 -0400 (EDT)
- Reply-to: hanlonr at cox.net
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
>
>
>