June 28, 2010
3:17 p.m.
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 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?
Why not using ReferenceStream? It is supposed to handle your problem. Noury