变量扩展情况下的默认扩展策略是什么?

huangapple go评论43阅读模式
英文:

What's the default expansion policy in the variable expand case?

问题

默认情况下,在使用 Memgraph 时,变量展开情况下的默认扩展策略是什么?

当我有一个查询 MATCH (x {id: 587})-[edge_list:Type *dfs..10]-(y {id: 963}) RETURN *; 时,我正在使用 DFS 算法。我明确告诉它要使用 DFS

如果我省略 dsf,使用这个查询:MATCH (x {id: 587})-[edge_list:Type *..10]-(y {id: 963}) RETURN *;,会使用哪个算法?结果是相同的。这是否意味着 DFS 是默认算法?

英文:

What's the default expansion policy in the variable expand case when using Memgraph?

When I have a query MATCH (x {id: 587})-[edge_list:Type *dfs..10]-(y {id: 963}) RETURN *; I'm using DFS algorithm. I explicitly tell to use DFS.

Which algorithm is used if I omit dsf: MATCH (x {id: 587})-[edge_list:Type *..10]-(y {id: 963}) RETURN *;? The result is the same. Does this mean that DFS is the default?

答案1

得分: 1

Memgraph中的默认关系遍历算法是DFS(深度优先搜索)。这意味着如果你运行:

MATCH (x {id: 587})-[edge_list:Type *..10]-(y {id: 963}) RETURN *;

DFS将在底层运行。

英文:

The default relationship traversal algorithm in Memgraph is DFS (Depth First Search). This means that if you run:

MATCH (x {id: 587})-[edge_list:Type *..10]-(y {id: 963}) RETURN *;

the DFS will be run under the hood.

huangapple
  • 本文由 发表于 2023年2月27日 19:18:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75579781.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定