1
0
Fork 0
arangodb/Documentation/Books/AQL/Graphs
Simran Brucherseifer 64da8757e2 Documentation improvements 2016-07-18 12:15:35 +02:00
..
README.mdpp Reviewed and edited Web Interface pages 2016-06-20 19:54:53 +02:00
ShortestPath.mdpp - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
Traversals.mdpp Documentation improvements 2016-07-18 12:15:35 +02:00
traversal_graph.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph1.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph2.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph3.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph4.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph5.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph6.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00
traversal_graph7.png - add test whether all images are referenced 2016-06-22 11:47:06 +02:00

README.mdpp

!CHAPTER Graphs in AQL

There are multiple ways to work with [graphs in ArangoDB](../../Manual/Graphs/index.html),
as well as different ways to query your graphs using AQL.

The two options in managing graphs are to either use

- named graphs where ArangoDB manages the collections involved in one graph, or
- graph functions on a combination of document and edge collections.

Named graphs can be defined through the [graph-module](../../Manual/Graphs/GeneralGraphs/index.html)
or via the [web interface](../../Manual/Administration/WebInterface/index.html).
The definition contains the name of the graph, and the vertex and edge collections
involved. Since the management functions are layered on top of simple sets of
document and edge collections, you can also use regular AQL functions to work with them. 

Both variants (named graphs and loosely coupled collection sets a.k.a. anonymous graphs)
are supported by the AQL language constructs for graph querying. These constructs
make full use of optimizations and therefore best performance is to be expected:

- [AQL Traversals](Traversals.md) to follow edges connected to a start vertex,
  up to a variable depth. It can be combined with AQL filter conditions.

- [AQL Shortest Path](ShortestPath.md) to find the vertices and edges between two
  given vertices, with as few hops as possible.

These types of queries are only useful if you use edge collections and/or graphs in
your data model.