Hi Raghava,

Also,  are you sure you're only creating the nodes once? Looking at your 
numbers, (7434-7021=413) happens to be true, though the other intervals don't 
match. Is this from a single run starting with a clean database (the db 
directory is empty)?

-Andreas

On Feb 3, 2011, at 7:51 PM, David Montag wrote:

> Hi Raghava,
> 
> Could you please provide the code used to create the store? Could you also
> please provide the code you use to iterate all nodes?
> 
> The reference node always has id 0, so you can filter by ID to ensure that
> you don't process that node.
> 
> David
> 
> On Thu, Feb 3, 2011 at 10:41 AM, Raghava Mutharaju <
> m.vijayaragh...@gmail.com> wrote:
> 
>> Hi all,
>> 
>> I want to iterate over all the nodes in the graph and then do a tranversal
>> on each of them. To do this, I used the getAllNodes() method of
>> GraphDatabaseService class. But the number of nodes I get always varies on
>> each run. I checked the number of nodes I created during graph creation
>> time
>> and they were as expected. The results of getAllNodes() return each node
>> many number of times.
>> 
>> Nodes created: 413,
>> Nodes obtained by getAllNodes(): 6506, 5426, 7021, 7434, ......
>> 
>> What might be going wrong here?
>> 
>> Another question I had is, it looks like a "start/root node" would be
>> created by default. Is this the case? If so, how can I avoid/recognize it
>> in
>> the getAllNodes() results?
>> 
>> 
>> Thank you.
>> 
>> Regards,
>> Raghava.
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>> 
> 
> 
> 
> -- 
> David Montag
> Neo Technology, www.neotechnology.com
> Cell: 650.556.4411
> david.mon...@neotechnology.com
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to