Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在gremlin中指定广度优先策略或深度优先策略_Gremlin - Fatal编程技术网

如何在gremlin中指定广度优先策略或深度优先策略

如何在gremlin中指定广度优先策略或深度优先策略,gremlin,Gremlin,深度优先策略是Gremlin中的默认策略,除非另有规定。如何指定广度优先策略 希腊语如下: g.V().repeat(_,in('edgelabel').simplePath()).times(3).path() 目前,当使用repeat时,它默认为BFS,这是不幸的,因为所有其他OLTP查询都是DFS。有一张票的地址是:@stephen mallette

深度优先策略是Gremlin中的默认策略,除非另有规定。如何指定广度优先策略

希腊语如下:

    g.V().repeat(_,in('edgelabel').simplePath()).times(3).path()

目前,当使用repeat时,它默认为BFS,这是不幸的,因为所有其他OLTP查询都是DFS。有一张票的地址是:

@stephen mallette