Re: [Pharo-project] amount of recheable objects from a root one?

2010-06-29 Thread Mariano Martinez Peck
On Sun, Jun 27, 2010 at 3:42 PM, Adrian Lienhard wrote: > Hi Mariano > > Any reason not to use image segments? actually yesI don't know why but it seems I have 0 objects in the segment and few objects in outPointersI will digg into it and see if I find the problem. I finally did what N

Re: [Pharo-project] amount of recheable objects from a root one?

2010-06-28 Thread Noury Bouraqadi
On 27 juin 2010, at 14:41, Mariano Martinez Peck wrote: > Hi folks. I need to do something and I am a little lazy to do it. Maybe > someone already did it and can share it with me. I want to take an object X. > That object has references to other objects and I imagine that as a graph. > > I n

Re: [Pharo-project] amount of recheable objects from a root one?

2010-06-27 Thread Miguel Enrique Cobá Martínez
El dom, 27-06-2010 a las 14:41 +0200, Mariano Martinez Peck escribió: > Hi folks. I need to do something and I am a little lazy to do it. > Maybe someone already did it and can share it with me. I want to take > an object X. That object has references to other objects and I imagine > that as a grap

Re: [Pharo-project] amount of recheable objects from a root one?

2010-06-27 Thread Adrian Lienhard
Hi Mariano Any reason not to use image segments? It even includes a method doSpaceAnalysis to count the number of instances per class. In addition you may have take the objects in the outpointers collection into account. Cheers, Adrian On Jun 27, 2010, at 14:41 , Mariano Martinez Peck wrote:

[Pharo-project] amount of recheable objects from a root one?

2010-06-27 Thread Mariano Martinez Peck
Hi folks. I need to do something and I am a little lazy to do it. Maybe someone already did it and can share it with me. I want to take an object X. That object has references to other objects and I imagine that as a graph. I need to traverse the graph, and get the final amount of reachable object