@@ -2635,7 +2635,9 @@ public void testVertexCentricQuery(int noVertices) {
26352635 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , 0.5 ), EDGE , 3 , 1 , new boolean []{true , true });
26362636 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , Contain .IN , ImmutableList .of (0.5 )), EDGE , 3 , 1 , new boolean []{true , true });
26372637 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 , 2.5 )).interval ("time" , 3 , 33 ), EDGE , 7 , 3 , new boolean []{true , true });
2638- evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 )), EDGE , 1667 , 2 , new boolean []{true , true });
2638+ int friendsWhoHaveOutEdgesWithWeightBetweenPointFiveAndOnePointFive = (int ) Math .round (Math .ceil (1667 * noVertices / 10000.0 ));
2639+ evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 )), EDGE ,
2640+ friendsWhoHaveOutEdgesWithWeightBetweenPointFiveAndOnePointFive , 2 , new boolean []{true , true });
26392641 assertEquals (3 , u .query ().labels ("friendDesc" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , 0.5 ).edgeCount ());
26402642 assertEquals (1 , v .query ().labels ("friend" ).direction (OUT ).has ("weight" , 0.5 ).interval ("time" , 4 , 10 ).edgeCount ());
26412643 assertEquals (1 , u .query ().labels ("friendDesc" ).direction (OUT ).has ("weight" , 0.5 ).interval ("time" , 4 , 10 ).edgeCount ());
@@ -2748,7 +2750,8 @@ public void testVertexCentricQuery(int noVertices) {
27482750 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , 0.5 ), EDGE , 3 , 1 , new boolean []{true , true });
27492751 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , Contain .IN , ImmutableList .of (0.5 )), EDGE , 3 , 1 , new boolean []{true , true });
27502752 evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 , 2.5 )).interval ("time" , 3 , 33 ), EDGE , 7 , 3 , new boolean []{true , true });
2751- evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 )), EDGE , 1667 , 2 , new boolean []{true , true });
2753+ evaluateQuery (v .query ().labels ("friend" ).direction (OUT ).has ("weight" , Contain .IN , ImmutableList .of (0.5 , 1.5 )), EDGE ,
2754+ friendsWhoHaveOutEdgesWithWeightBetweenPointFiveAndOnePointFive , 2 , new boolean []{true , true });
27522755 assertEquals (3 , u .query ().labels ("friendDesc" ).direction (OUT ).interval ("time" , 3 , 33 ).has ("weight" , 0.5 ).edgeCount ());
27532756 assertEquals (1 , v .query ().labels ("friend" ).direction (OUT ).has ("weight" , 0.5 ).interval ("time" , 4 , 10 ).edgeCount ());
27542757 assertEquals (1 , u .query ().labels ("friendDesc" ).direction (OUT ).has ("weight" , 0.5 ).interval ("time" , 4 , 10 ).edgeCount ());
0 commit comments