简体   繁体   English

AQL EDGES,NEIGHBORS等与GRAPH_EDGES,GRAPH_NEIGHBORS有什么区别

[英]What is the difference between the AQL EDGES, NEIGHBORS, etc. and GRAPH_EDGES, GRAPH_NEIGHBORS

In ArangoDB, there seem to be two set of functions for working with graphs. 在ArangoDB中,似乎有两组用于处理图形的函数。 One one side you have EDGES , NEIGHBORS , TRAVERSAL , SHORTEST_PATH and more ( https://docs.arangodb.com/Aql/GraphFunctions.html ). 其中一面,你有EDGESNEIGHBORSTRAVERSALSHORTEST_PATH多( https://docs.arangodb.com/Aql/GraphFunctions.html )。

OTOH there are the graph operations ( https://docs.arangodb.com/Aql/GraphOperations.html ) that seems to have the same functions prefixed by GRAPH and with some different parameters, such as GRAPH_EDGES , GRAPH_NEIGHBORS , GRAPH_TRAVERSAL , GRAPH_SHORTEST_PATH . OTOH中有一些图形操作( https://docs.arangodb.com/Aql/GraphOperations.html ),它们似乎具有以GRAPH为前缀的相同功能,并带有一些不同的参数,例如GRAPH_EDGESGRAPH_NEIGHBORSGRAPH_TRAVERSALGRAPH_SHORTEST_PATH

What is the difference between these. 这些之间有什么区别。 Are they used in different scenarios? 它们用于不同的场景吗? Are there performance differences, etc? 是否存在性能差异等?

There is no general recommendation which to choose over the other - it depends on your requirements. 没有可供选择的一般建议-这取决于您的要求。

The EDGES functions may work on collections that are not managed by the graph module, and thus may not be visible in the graph viewer (but you may use them on collections that are also managed). EDGES功能可能在不受图形模块管理的集合上起作用,因此在图形查看器中可能不可见(但您可以在也受管理的集合上使用它们)。 It however has lesser overhead by not doing graph management. 但是,由于不进行图形管理,因此开销较小。

The GRAPH_EDGES family is the more recent implementation. GRAPH_EDGES系列是更新的实现。 It only works on managed graphs that you can also browse in the graph viewer . 它仅适用于托管图,您也可以在图查看器中浏览该 As you already noted, the later have many more options to ie filter the graphs by examples etc. 正如您已经提到的,后面的版本提供了更多选项,例如通过示例等过滤图。

With ArangoDB 3 the GRAPH_* family of functions was removed. 使用ArangoDB 3,GRAPH_ *系列功能已删除。 We explain in this cookbook how their functionality can be achieved with AQL in ArangoDB 3. 我们将在本手册中解释如何使用ArangoDB 3中的AQL实现其功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM