You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1034,7 +1037,7 @@ exports.test = function (testParams) {
1034
1037
traversalProjections=function(params){
1035
1038
// Note that depth 8 is good for all three sizes small (6), medium (7)
1036
1039
// and big (8). Depending on the size, we create a different tree.
1037
-
db._query(`FOR v IN 0..8 OUTBOUND "TreeV/S1:K1" GRAPH "Tree" RETURN v.data`,{},{},{silent});
1040
+
db._query(`FOR v IN 0..8 OUTBOUND "TreeV/S1:K1" GRAPH "Tree" RETURN v.smallData`,{},{},{silent});
1038
1041
},
1039
1042
1040
1043
outbound=function(params){
@@ -1153,6 +1156,21 @@ exports.test = function (testParams) {
1153
1156
{ silent }
1154
1157
);
1155
1158
},
1159
+
supernode_limit=function(params){
1160
+
// limit output vertices and make sure that at least one of the supernodes's neighbours is in the result but not all of the supernode's neighbours
1161
+
// dfs first enumerates all vertices in one half-tree, then the other all vertices in the other half-tree
1162
+
// if the supernode is in the first half-tree, limit should be smaller than the number of supernode neighbours (is already assured by tree creation)
1163
+
// if the supernode is in the second half-tree, limit should be at least the size of the first half-tree (2**(depth-1)) plus 2 to additionally enumerate the supernode and one of its neighbours
1164
+
letlimit=2**(supernodeTreeDepth-1)+2;
1165
+
db._query(`FOR v IN 0..8 OUTBOUND "SupernodeV/S1:K1" GRAPH "Supernode" LIMIT @limit RETURN v.data`,
0 commit comments