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 graph.
I need to traverse the graph, and get the final amount of reachable objects from the object X. I mean, the size of that graph. I need to avoid cycles and not count objects already counted. Maybe I can reuse part of SmartRefStream?
What about Magma's Ma object serialization and Ma traverse object graphs' packages. I think they can be used independently from Magma to do what you need. Cheers
Thanks for any tip.
Mariano _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Miguel Cobá http://miguel.leugim.com.mx