From stu00 at mac.com Mon May 5 17:15:16 2008 From: stu00 at mac.com (Stuart Stanley) Date: Mon, 05 May 2008 10:15:16 -0500 Subject: [uDraw(Graph)-Users] uDraw -- is there a way to suspend updates? Message-ID: <98E7C544-2558-4E59-A4CB-24943B739FD5@mac.com> Good day everyone: I have a simulation I am writing that adds a bunch of graph nodes at startup time and then shifts to an intermittent add/delete/change model. Is there a way to tell the front-end via the API to suspend updates to the actual display and then recalculate the graph when I am done with the bulk adds? I suspect this would (dramatically) speed up my sim-startup without me having to write a bunch of code to aggregate all the startup messages and then somehow not aggregate them when in update mode. I.E., I want to be lazy ;). Any thoughts? --stuart From mawe at informatik.uni-bremen.de Wed May 7 08:22:29 2008 From: mawe at informatik.uni-bremen.de (Mattias Werner) Date: Wed, 07 May 2008 08:22:29 +0200 Subject: [uDraw(Graph)-Users] uDraw -- is there a way to suspend updates? In-Reply-To: <98E7C544-2558-4E59-A4CB-24943B739FD5@mac.com> References: <98E7C544-2558-4E59-A4CB-24943B739FD5@mac.com> Message-ID: <48214AA5.8050801@informatik.uni-bremen.de> Hello, Stuart Stanley schrieb: > I have a simulation I am writing that adds a bunch of graph nodes at > startup time and then shifts to an intermittent add/delete/change model. > Is there a way to tell the front-end via the API to suspend updates to > the actual display and then recalculate the graph when I am done with > the bulk adds? I suspect this would (dramatically) speed up my > sim-startup without me having to write a bunch of code to aggregate all > the startup messages and then somehow not aggregate them when in update > mode. I.E., I want to be lazy ;). unfortunately you can't suspend updates in uDraw(Graph), each API command is executed immediately. No chance to be lazy in this part of your code. ;-) Regards, Mattias Werner uDraw(Graph) project -- Dipl. Inform. Mattias Werner Bremen University, FB 3 E-Mail: mawe at informatik.Uni-Bremen.DE WWW: http://www.informatik.uni-bremen.de/~mawe/