Re: problem For with GraphPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg78058] Re: problem For with GraphPlot
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 22 Jun 2007 06:34:08 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f5dkbu$mr$1@smc.vnet.net>
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