Memgraph支持的所有变量扩展类型是什么?

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

What are all types of variable expansions supported by Memgraph?

问题

我目前在我的学习项目中使用Memgraph作为图数据库。我了解到变量扩展在遍历图形时起着重要作用,特别是在查询节点之间的关系时。基于Memgraph的功能,有人能指定支持的变量扩展类型吗?

英文:

I am currently using Memgraph as a graph databases in my learining project. I understand that variable expansions play a significant role in traversing graphs, especially when querying relationships between nodes.

Based on the capabilities of Memgraph, could someone specify the types of variable expansions that are supported?

答案1

得分: 0

Memgraph支持以下类型的变量扩展:

  1. 深度优先搜索(DFS): DFS是一种算法,它在回溯之前尽可能远地访问图中的每个分支上的顶点。

  2. 广度优先搜索(BFS): BFS通过在移动到下一级的顶点之前访问当前级别的所有顶点来操作。Memgraph中的BFS是通过最短路径算法实现的:

    • SingleSourceShortestPath: 找到从单个源节点到图中所有其他节点的最短路径。

    • STShortestPath: 计算特定源节点和特定目标节点之间的最短路径。

  3. WeightedShortestPath: 此算法在计算最短路径时考虑边缘权重。

  4. AllShortestPath: 找到图中所有节点对之间的所有最短路径。

英文:

Memgraph supports following types of variable expansions:

  1. Depth-first search (DFS): DFS is an algorithm that visits vertices in a graph as far as possible along each branch before backtracking.

  2. Breadth-first search (BFS): BFS operates by visiting all the vertices of the current level before moving to vertices of the next level. BFS in Memgraph is implemented through shortest path algorithms:

    • SingleSourceShortestPath: Finds the shortest path from a single source node to all other nodes in the graph.

    • STShortestPath: Computes the shortest path between a specific source node and a specific target node.

  3. WeightedShortestPath: This algorithm takes into account edge weights when calculating the shortest paths.

  4. AllShortestPath: Finds all shortest paths between all pairs of nodes in a graph.

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

发表评论

匿名网友

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

确定