Don't use 2.1-M01 for critical development, it is a milestone / feedback 
release.

Cheers,

Michael

----
(michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j)
Learn Online, Offline or Read a Book (in Deutsch)
We're trading T-shirts for cool Graph Models







Am 13.03.2014 um 12:26 schrieb Sotiris Beis <[email protected]>:

> Ok, can you suggest me another temporary solution?
> 
> On 03/13/2014 01:24 PM, Michael Hunger wrote:
>> Thanks for the feedback. Could be related to the changes in the store format 
>> for heavily connected nodes.
>> 
>> We'll investigate.
>> 
>> Cheers,
>> 
>> Michael
>> 
>> ----
>> (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j)
>> Learn Online, Offline or Read a Book (in Deutsch)
>> We're trading T-shirts for cool Graph Models
>> 
>> 
>> 
>> Am 13.03.2014 um 12:22 schrieb Sotiris Beis <[email protected]>:
>> 
>>>> Which version of Neo4j are you using?
>>> I use neo4j-2.1.0-M01
>>> 
>>>> You use  a Set which elminates duplicates. You probably have duplicate 
>>>> neighbourId's that are only 100 distinct ones.
>>> That was my first thought, but I cheched it. There are no dublicates.
>>> Why do you think the result is different when I use this test line 
>>> 
>>> System.out.println(IteratorUtil.count(n.getRelationships(Direction.OUTGOING)));
>>> 
>>> before the iteration of the relationships?
>>> 
>>> n 03/13/2014 01:00 PM, Michael Hunger wrote:
>>>> Which version of Neo4j are you using?
>>>> 
>>>> You use  a Set which elminates duplicates. You probably have duplicate 
>>>> neighbourId's that are only 100 distinct ones.
>>>> 
>>>> And you close the transaction twice. It is an auto-closable resource so 
>>>> you can remove your manual tx.close() line.
>>>> 
>>>> Cheers,
>>>> 
>>>> Michael
>>>> 
>>>> ----
>>>> (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j)
>>>> Learn Online, Offline or Read a Book (in Deutsch)
>>>> We're trading T-shirts for cool Graph Models
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Am 13.03.2014 um 11:21 schrieb Sotiris Beis <[email protected]>:
>>>> 
>>>>> I have the following case study. I want to get the neighbors of the 
>>>>> certain node. My function is this one:
>>>>> public Set<Integer> getNeighborsIds(int nodeId) {
>>>>>  Set<Integer> neighbours = new HashSet<Integer>();
>>>>>  try (Transaction tx = neo4jGraph.beginTx()) {
>>>>>  Node n = nodeIndex.get("nodeId", nodeId).getSingle();
>>>>>  for(Relationship relationship : n.getRelationships(Direction.OUTGOING)) {
>>>>>  Node neighbour = relationship.getEndNode();
>>>>>  String neighbourId = (String)neighbour.getProperty("nodeId");
>>>>>  neighbours.add(Integer.valueOf(neighbourId));
>>>>>  }
>>>>>  tx.success();
>>>>>  tx.close();
>>>>>  }
>>>>>  return neighbours;
>>>>>  }
>>>>> 
>>>>> I know that this node has 255 neighbors but this function return only 100 
>>>>> nodes. When I put this line 
>>>>> System.out.println(IteratorUtil.count(n.getRelationships(Direction.OUTGOING)));
>>>>> 
>>>>> 
>>>>>  4 and 5 line the function returns 255 neighbors. The most strange is 
>>>>> that the above function prints out the value 100. Is this a bug or can 
>>>>> anyone explain this to me?
>>>>> 
>>>>> Thanks,
>>>>> Sotiris
>>>>> 
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "Neo4j" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>>> email to [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>> 
>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Neo4j" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/neo4j/stHamJpQSBk/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Neo4j" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Neo4j" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/neo4j/stHamJpQSBk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to