ArangoDB Graphs

First Steps with Graphs

A Graph consists of vertices and edges. Edges are stored as documents in edge collections. A vertex can be a document of a document collection or of an edge collection (so edges can be used as vertices). Which collections are used within a named graph is defined via edge definitions. A named graph can contain more than one edge definition, at least one is needed. Graphs allow you to structure your models in line with your domain and group them logically in collections and giving you the power to query them in the same graph queries.

New to graphs? Take our free graph course for freshers and get from zero knowledge to advanced query techniques.

Coming from a relational background - what’s a graph?

In SQL you commonly have the construct of a relation table to store n:m relations between two data tables. An edge collection is somewhat similar to these relation tables; vertex collections resemble the data tables with the objects to connect. While simple graph queries with fixed number of hops via the relation table may be doable in SQL with several nested joins, graph databases can handle an arbitrary number of these hops over edge collections - this is called traversal. Also edges in one edge collection may point to several vertex collections. Its common to have attributes attached to edges, i.e. a label naming this interconnection. Edges have a direction, with their relations _from and _to pointing from one document to another document stored in vertex collections. In queries you can define in which directions the edge relations may be followed (OUTBOUND: _from_to, INBOUND: _from_to, ANY: _from_to).

Named Graphs

Named graphs are completely managed by ArangoDB, and thus also visible in the web interface. They use the full spectrum of ArangoDB’s graph features. You may access them via several interfaces.

Manipulating collections of named graphs with regular document functions

The underlying collections of the named graphs are still accessible using the standard methods for collections. However the graph module adds an additional layer on top of these collections giving you the following guarantees:

  • All modifications are executed transactional
  • If you delete a vertex all edges referring to this vertex will be deleted too
  • If you insert an edge it is checked if the edge matches the edge definitions

Your edge collections will only contain valid edges and you will never have loose ends. These guarantees are lost if you access the collections in any other way than the graph module, so if you delete documents from your vertex collections directly, the edges pointing to them will be remain in place.

Existing inconsistencies in your data will not be corrected when you create a named graph. Therefore, make sure you start with sound data as otherwise there could be dangling edges after all. The graph module guarantees to not introduce new inconsistencies only.

Anonymous graphs

Sometimes you may not need all the powers of named graphs, but some of its bits may be valuable to you. You may use anonymous graphs in the traversals and in the Working with Edges chapter. Anonymous graphs don’t have edge definitions describing which vertex collection is connected by which edge collection. The graph model has to be maintained in the client side code. This gives you more freedom than the strict named graphs.

When to choose anonymous or named graphs?

As noted above, named graphs ensure graph integrity, both when inserting or removing edges or vertices. So you won’t encounter dangling edges, even if you use the same vertex collection in several named graphs. This involves more operations inside the database which come at a cost. Therefore anonymous graphs may be faster in many operations. So this question may be narrowed down to: ‘Can I afford the additional effort or do I need the warranty for integrity?’.

Multiple edge collections vs. FILTERs on edge document attributes

If you want to only traverse edges of a specific type, there are two ways to achieve this. The first would be an attribute in the edge document - i.e. type, where you specify a differentiator for the edge - i.e. "friends", "family", "married" or "workmates", so you can later FILTER e.type = "friends" if you only want to follow the friend edges.

Another way, which may be more efficient in some cases, is to use different edge collections for different types of edges, so you have friend_edges, family_edges, married_edges and workmate_edges as collection names. You can then configure several named graphs including a subset of the available edge and vertex collections - or you use anonymous graph queries, where you specify a list of edge collections to take into account in that query. To only follow friend edges, you would specify friend_edges as sole edge collection.

Both approaches have advantages and disadvantages. FILTER operations on edge attributes will do comparisons on each traversed edge, which may become CPU-intense. When not finding the edges in the first place because of the collection containing them is not traversed at all, there will never be a reason to actually check for their type attribute with FILTER.

The multiple edge collections approach is limited by the number of collections that can be used simultaneously in one query. Every collection used in a query requires some resources inside of ArangoDB and the number is therefore limited to cap the resource requirements. You may also have constraints on other edge attributes, such as a hash index with a unique constraint, which requires the documents to be in a single collection for the uniqueness guarantee, and it may thus not be possible to store the different types of edges in multiple edge collections.

So, if your edges have about a dozen different types, it’s okay to choose the collection approach, otherwise the FILTER approach is preferred. You can still use FILTER operations on edges of course. You can get rid of a FILTER on the type with the former approach, everything else can stay the same.

Which part of my data is an Edge and which a Vertex?

The main objects in your data model, such as users, groups or articles, are usually considered to be vertices. For each type of object, a document collection (also called vertex collection) should store the individual entities. Entities can be connected by edges to express and classify relations between vertices. It often makes sense to have an edge collection per relation type.

ArangoDB does not require you to store your data in graph structures with edges and vertices, you can also decide to embed attributes such as which groups a user is part of, or _ids of documents in another document instead of connecting the documents with edges. It can be a meaningful performance optimization for 1:n relationships, if your data is not focused on relations and you don’t need graph traversal with varying depth. It usually means to introduce some redundancy and possibly inconsistencies if you embed data, but it can be an acceptable tradeoff.

Vertices

Let’s say we have two vertex collections, Users and Groups. Documents in the Groups collection contain the attributes of the Group, i.e. when it was founded, its subject, an icon URL and so on. Users documents contain the data specific to a user - like all names, birthdays, Avatar URLs, hobbies…

Edges

We can use an edge collection to store relations between users and groups. Since multiple users may be in an arbitrary number of groups, this is an m:n relation. The edge collection can be called UsersInGroups with i.e. one edge with _from pointing to Users/John and _to pointing to Groups/BowlingGroupHappyPin. This makes the user John a member of the group Bowling Group Happy Pin. Attributes of this relation may contain qualifiers to this relation, like the permissions of John in this group, the date when he joined the group etc.

User in group example

So roughly put, if you use documents and their attributes in a sentence, nouns would typically be vertices, verbs become the edges. You can see this in the knows graph below:

  1. Alice knows Bob, who in term knows Charlie.

Advantages of this approach

Graphs give you the advantage of not just being able to have a fixed number of m:n relations in a row, but an arbitrary number. Edges can be traversed in both directions, so it’s easy to determine all groups a user is in, but also to find out which members a certain group has. Users could also be interconnected to create a social network.

Using the graph data model, dealing with data that has lots of relations stays manageable and can be queried in very flexible ways, whereas it would cause headache to handle it in a relational database system.

Backup and restore

For sure you want to have backups of your graph data, you can use arangodump to create the backup, and arangorestore to restore a backup into a new ArangoDB. You should however note that:

  • you need the system collection _graphs if you backup named graphs.
  • you need to backup the complete set of all edge and vertex collections your graph consists of. Partial dump/restore may not work.

Managing graphs

By default you should use the interface your driver provides to manage graphs.

This is i.e. documented in Graphs-Section of the ArangoDB Java driver.

Example Graphs

ArangoDB comes with a set of easily graspable graphs that are used to demonstrate the APIs. You can use the add samples tab in the create graph window in the web interface, or load the module @arangodb/graph-examples/example-graph in arangosh and use it to create instances of these graphs in your ArangoDB. Once you’ve created them, you can inspect them in the web interface - which was used to create the pictures below.

You can easily look into the innards of this script for reference about how to manage graphs programmatically.

The Knows_Graph

A set of persons knowing each other: Persons relation Example Graph

The knows graph consists of one vertex collection persons connected via one edge collection knows. It will contain five persons Alice, Bob, Charlie, Dave and Eve. We will have the following directed relations:

  • Alice knows Bob
  • Bob knows Charlie
  • Bob knows Dave
  • Eve knows Alice
  • Eve knows Bob

This is how we create it, inspect its vertices and edges, and drop it again:

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("knows_graph");
  3. arangosh> db.persons.toArray()
  4. arangosh> db.knows.toArray();
  5. arangosh> examples.dropGraph("knows_graph");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "alice",
  4. "_id" : "persons/alice",
  5. "_rev" : "_cuv9dV2---",
  6. "name" : "Alice"
  7. },
  8. {
  9. "_key" : "bob",
  10. "_id" : "persons/bob",
  11. "_rev" : "_cuv9dV6---",
  12. "name" : "Bob"
  13. },
  14. {
  15. "_key" : "charlie",
  16. "_id" : "persons/charlie",
  17. "_rev" : "_cuv9dV6--_",
  18. "name" : "Charlie"
  19. },
  20. {
  21. "_key" : "dave",
  22. "_id" : "persons/dave",
  23. "_rev" : "_cuv9dW----",
  24. "name" : "Dave"
  25. },
  26. {
  27. "_key" : "eve",
  28. "_id" : "persons/eve",
  29. "_rev" : "_cuv9dW---_",
  30. "name" : "Eve"
  31. }
  32. ]
  33. [
  34. {
  35. "_key" : "79915",
  36. "_id" : "knows/79915",
  37. "_from" : "persons/alice",
  38. "_to" : "persons/bob",
  39. "_rev" : "_cuv9dW---A",
  40. "vertex" : "alice"
  41. },
  42. {
  43. "_key" : "79917",
  44. "_id" : "knows/79917",
  45. "_from" : "persons/bob",
  46. "_to" : "persons/charlie",
  47. "_rev" : "_cuv9dWC---",
  48. "vertex" : "bob"
  49. },
  50. {
  51. "_key" : "79919",
  52. "_id" : "knows/79919",
  53. "_from" : "persons/bob",
  54. "_to" : "persons/dave",
  55. "_rev" : "_cuv9dWC--_",
  56. "vertex" : "bob"
  57. },
  58. {
  59. "_key" : "79921",
  60. "_id" : "knows/79921",
  61. "_from" : "persons/eve",
  62. "_to" : "persons/alice",
  63. "_rev" : "_cuv9dWC--A",
  64. "vertex" : "eve"
  65. },
  66. {
  67. "_key" : "79923",
  68. "_id" : "knows/79923",
  69. "_from" : "persons/eve",
  70. "_to" : "persons/bob",
  71. "_rev" : "_cuv9dWG---",
  72. "vertex" : "eve"
  73. }
  74. ]

Note: with the default “Search Depth” of 2 of the graph viewer you may not see all edges of this graph.

The Social Graph

A set of persons and their relations:

Social Example Graph

This example has female and male persons as vertices in two vertex collections - female and male. The edges are their connections in the relation edge collection. This is how we create it, inspect its vertices and edges, and drop it again:

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var graph = examples.loadGraph("social");
  3. arangosh> db.female.toArray()
  4. arangosh> db.male.toArray()
  5. arangosh> db.relation.toArray()
  6. arangosh> examples.dropGraph("social");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "alice",
  4. "_id" : "female/alice",
  5. "_rev" : "_cuv9daa---",
  6. "name" : "Alice"
  7. },
  8. {
  9. "_key" : "diana",
  10. "_id" : "female/diana",
  11. "_rev" : "_cuv9dae--_",
  12. "name" : "Diana"
  13. }
  14. ]
  15. [
  16. {
  17. "_key" : "bob",
  18. "_id" : "male/bob",
  19. "_rev" : "_cuv9daa--_",
  20. "name" : "Bob"
  21. },
  22. {
  23. "_key" : "charly",
  24. "_id" : "male/charly",
  25. "_rev" : "_cuv9dae---",
  26. "name" : "Charly"
  27. }
  28. ]
  29. [
  30. {
  31. "_key" : "80167",
  32. "_id" : "relation/80167",
  33. "_from" : "female/alice",
  34. "_to" : "male/bob",
  35. "_rev" : "_cuv9dae--A",
  36. "type" : "married",
  37. "vertex" : "alice"
  38. },
  39. {
  40. "_key" : "80169",
  41. "_id" : "relation/80169",
  42. "_from" : "female/alice",
  43. "_to" : "male/charly",
  44. "_rev" : "_cuv9dai---",
  45. "type" : "friend",
  46. "vertex" : "alice"
  47. },
  48. {
  49. "_key" : "80171",
  50. "_id" : "relation/80171",
  51. "_from" : "male/charly",
  52. "_to" : "female/diana",
  53. "_rev" : "_cuv9dam---",
  54. "type" : "married",
  55. "vertex" : "charly"
  56. },
  57. {
  58. "_key" : "80173",
  59. "_id" : "relation/80173",
  60. "_from" : "male/bob",
  61. "_to" : "female/diana",
  62. "_rev" : "_cuv9dam--_",
  63. "type" : "friend",
  64. "vertex" : "bob"
  65. }
  66. ]

The City Graph

A set of european cities, and their fictional traveling distances as connections:

Cities Example Graph

The example has the cities as vertices in several vertex collections - germanCity and frenchCity. The edges are their interconnections in several edge collections french / german / international Highway. This is how we create it, inspect its edges and vertices, and drop it again:

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("routeplanner");
  3. arangosh> db.frenchCity.toArray();
  4. arangosh> db.germanCity.toArray();
  5. arangosh> db.germanHighway.toArray();
  6. arangosh> db.frenchHighway.toArray();
  7. arangosh> db.internationalHighway.toArray();
  8. arangosh> examples.dropGraph("routeplanner");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "Lyon",
  4. "_id" : "frenchCity/Lyon",
  5. "_rev" : "_cuv9dQG--_",
  6. "population" : 80000,
  7. "isCapital" : false,
  8. "geometry" : {
  9. "type" : "Point",
  10. "coordinates" : [
  11. 4.84,
  12. 45.76
  13. ]
  14. }
  15. },
  16. {
  17. "_key" : "Paris",
  18. "_id" : "frenchCity/Paris",
  19. "_rev" : "_cuv9dQG--A",
  20. "population" : 4000000,
  21. "isCapital" : true,
  22. "geometry" : {
  23. "type" : "Point",
  24. "coordinates" : [
  25. 2.3508,
  26. 48.8567
  27. ]
  28. }
  29. }
  30. ]
  31. [
  32. {
  33. "_key" : "Berlin",
  34. "_id" : "germanCity/Berlin",
  35. "_rev" : "_cuv9dQC---",
  36. "population" : 3000000,
  37. "isCapital" : true,
  38. "geometry" : {
  39. "type" : "Point",
  40. "coordinates" : [
  41. 13.3833,
  42. 52.5167
  43. ]
  44. }
  45. },
  46. {
  47. "_key" : "Cologne",
  48. "_id" : "germanCity/Cologne",
  49. "_rev" : "_cuv9dQC--_",
  50. "population" : 1000000,
  51. "isCapital" : false,
  52. "geometry" : {
  53. "type" : "Point",
  54. "coordinates" : [
  55. 6.9528,
  56. 50.9364
  57. ]
  58. }
  59. },
  60. {
  61. "_key" : "Hamburg",
  62. "_id" : "germanCity/Hamburg",
  63. "_rev" : "_cuv9dQG---",
  64. "population" : 1000000,
  65. "isCapital" : false,
  66. "geometry" : {
  67. "type" : "Point",
  68. "coordinates" : [
  69. 10.0014,
  70. 53.5653
  71. ]
  72. }
  73. }
  74. ]
  75. [
  76. {
  77. "_key" : "79678",
  78. "_id" : "germanHighway/79678",
  79. "_from" : "germanCity/Berlin",
  80. "_to" : "germanCity/Cologne",
  81. "_rev" : "_cuv9dQO---",
  82. "distance" : 850
  83. },
  84. {
  85. "_key" : "79680",
  86. "_id" : "germanHighway/79680",
  87. "_from" : "germanCity/Berlin",
  88. "_to" : "germanCity/Hamburg",
  89. "_rev" : "_cuv9dQS---",
  90. "distance" : 400
  91. },
  92. {
  93. "_key" : "79682",
  94. "_id" : "germanHighway/79682",
  95. "_from" : "germanCity/Hamburg",
  96. "_to" : "germanCity/Cologne",
  97. "_rev" : "_cuv9dQS--_",
  98. "distance" : 500
  99. }
  100. ]
  101. [
  102. {
  103. "_key" : "79684",
  104. "_id" : "frenchHighway/79684",
  105. "_from" : "frenchCity/Paris",
  106. "_to" : "frenchCity/Lyon",
  107. "_rev" : "_cuv9dQS--A",
  108. "distance" : 550
  109. }
  110. ]
  111. [
  112. {
  113. "_key" : "79686",
  114. "_id" : "internationalHighway/79686",
  115. "_from" : "germanCity/Berlin",
  116. "_to" : "frenchCity/Lyon",
  117. "_rev" : "_cuv9dQW---",
  118. "distance" : 1100
  119. },
  120. {
  121. "_key" : "79688",
  122. "_id" : "internationalHighway/79688",
  123. "_from" : "germanCity/Berlin",
  124. "_to" : "frenchCity/Paris",
  125. "_rev" : "_cuv9dQW--_",
  126. "distance" : 1200
  127. },
  128. {
  129. "_key" : "79690",
  130. "_id" : "internationalHighway/79690",
  131. "_from" : "germanCity/Hamburg",
  132. "_to" : "frenchCity/Paris",
  133. "_rev" : "_cuv9dQW--A",
  134. "distance" : 900
  135. },
  136. {
  137. "_key" : "79692",
  138. "_id" : "internationalHighway/79692",
  139. "_from" : "germanCity/Hamburg",
  140. "_to" : "frenchCity/Lyon",
  141. "_rev" : "_cuv9dQa---",
  142. "distance" : 1300
  143. },
  144. {
  145. "_key" : "79694",
  146. "_id" : "internationalHighway/79694",
  147. "_from" : "germanCity/Cologne",
  148. "_to" : "frenchCity/Lyon",
  149. "_rev" : "_cuv9dQe---",
  150. "distance" : 700
  151. },
  152. {
  153. "_key" : "79696",
  154. "_id" : "internationalHighway/79696",
  155. "_from" : "germanCity/Cologne",
  156. "_to" : "frenchCity/Paris",
  157. "_rev" : "_cuv9dQe--_",
  158. "distance" : 550
  159. }
  160. ]

The Traversal Graph

This graph was designed to demonstrate filters in traversals. It has some labels to filter on it.

Traversal Graph

The example has all its vertices in the circles collection, and an edges edge collection to connect them. Circles have unique numeric labels. Edges have two boolean attributes (theFalse always being false, theTruth always being true) and a label sorting B - D to the left side, G - K to the right side. Left and right side split into Paths - at B and G which are each direct neighbours of the root-node A. Starting from A the graph has a depth of 3 on all its paths.

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("traversalGraph");
  3. arangosh> db.circles.toArray();
  4. arangosh> db.edges.toArray();
  5. arangosh> examples.dropGraph("traversalGraph");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "A",
  4. "_id" : "circles/A",
  5. "_rev" : "_cuv9dbW---",
  6. "label" : "1"
  7. },
  8. {
  9. "_key" : "B",
  10. "_id" : "circles/B",
  11. "_rev" : "_cuv9dba---",
  12. "label" : "2"
  13. },
  14. {
  15. "_key" : "C",
  16. "_id" : "circles/C",
  17. "_rev" : "_cuv9dba--_",
  18. "label" : "3"
  19. },
  20. {
  21. "_key" : "D",
  22. "_id" : "circles/D",
  23. "_rev" : "_cuv9dba--A",
  24. "label" : "4"
  25. },
  26. {
  27. "_key" : "E",
  28. "_id" : "circles/E",
  29. "_rev" : "_cuv9dbe---",
  30. "label" : "5"
  31. },
  32. {
  33. "_key" : "F",
  34. "_id" : "circles/F",
  35. "_rev" : "_cuv9dbe--_",
  36. "label" : "6"
  37. },
  38. {
  39. "_key" : "G",
  40. "_id" : "circles/G",
  41. "_rev" : "_cuv9dbe--A",
  42. "label" : "7"
  43. },
  44. {
  45. "_key" : "H",
  46. "_id" : "circles/H",
  47. "_rev" : "_cuv9dbe--B",
  48. "label" : "8"
  49. },
  50. {
  51. "_key" : "I",
  52. "_id" : "circles/I",
  53. "_rev" : "_cuv9dbe--C",
  54. "label" : "9"
  55. },
  56. {
  57. "_key" : "J",
  58. "_id" : "circles/J",
  59. "_rev" : "_cuv9dbi---",
  60. "label" : "10"
  61. },
  62. {
  63. "_key" : "K",
  64. "_id" : "circles/K",
  65. "_rev" : "_cuv9dbi--_",
  66. "label" : "11"
  67. }
  68. ]
  69. [
  70. {
  71. "_key" : "80234",
  72. "_id" : "edges/80234",
  73. "_from" : "circles/A",
  74. "_to" : "circles/B",
  75. "_rev" : "_cuv9dbi--A",
  76. "theFalse" : false,
  77. "theTruth" : true,
  78. "label" : "left_bar"
  79. },
  80. {
  81. "_key" : "80236",
  82. "_id" : "edges/80236",
  83. "_from" : "circles/B",
  84. "_to" : "circles/C",
  85. "_rev" : "_cuv9dbm---",
  86. "theFalse" : false,
  87. "theTruth" : true,
  88. "label" : "left_blarg"
  89. },
  90. {
  91. "_key" : "80238",
  92. "_id" : "edges/80238",
  93. "_from" : "circles/C",
  94. "_to" : "circles/D",
  95. "_rev" : "_cuv9dbm--_",
  96. "theFalse" : false,
  97. "theTruth" : true,
  98. "label" : "left_blorg"
  99. },
  100. {
  101. "_key" : "80240",
  102. "_id" : "edges/80240",
  103. "_from" : "circles/B",
  104. "_to" : "circles/E",
  105. "_rev" : "_cuv9dbm--A",
  106. "theFalse" : false,
  107. "theTruth" : true,
  108. "label" : "left_blub"
  109. },
  110. {
  111. "_key" : "80242",
  112. "_id" : "edges/80242",
  113. "_from" : "circles/E",
  114. "_to" : "circles/F",
  115. "_rev" : "_cuv9dbm--B",
  116. "theFalse" : false,
  117. "theTruth" : true,
  118. "label" : "left_schubi"
  119. },
  120. {
  121. "_key" : "80244",
  122. "_id" : "edges/80244",
  123. "_from" : "circles/A",
  124. "_to" : "circles/G",
  125. "_rev" : "_cuv9dbq---",
  126. "theFalse" : false,
  127. "theTruth" : true,
  128. "label" : "right_foo"
  129. },
  130. {
  131. "_key" : "80246",
  132. "_id" : "edges/80246",
  133. "_from" : "circles/G",
  134. "_to" : "circles/H",
  135. "_rev" : "_cuv9dbq--_",
  136. "theFalse" : false,
  137. "theTruth" : true,
  138. "label" : "right_blob"
  139. },
  140. {
  141. "_key" : "80248",
  142. "_id" : "edges/80248",
  143. "_from" : "circles/H",
  144. "_to" : "circles/I",
  145. "_rev" : "_cuv9dbq--A",
  146. "theFalse" : false,
  147. "theTruth" : true,
  148. "label" : "right_blub"
  149. },
  150. {
  151. "_key" : "80250",
  152. "_id" : "edges/80250",
  153. "_from" : "circles/G",
  154. "_to" : "circles/J",
  155. "_rev" : "_cuv9dbu---",
  156. "theFalse" : false,
  157. "theTruth" : true,
  158. "label" : "right_zip"
  159. },
  160. {
  161. "_key" : "80252",
  162. "_id" : "edges/80252",
  163. "_from" : "circles/J",
  164. "_to" : "circles/K",
  165. "_rev" : "_cuv9dbu--_",
  166. "theFalse" : false,
  167. "theTruth" : true,
  168. "label" : "right_zup"
  169. }
  170. ]

Note: with the default “Search Depth” of 2 of the graph viewer you may not see all nodes of this graph.

The k Shortest Paths Graph

The vertices in this graph are train stations of cities in Europe and North America and the edges represent train connections between them, with the travel time for both directions as edge weight.

Train Connection Map

See the k Shortest Paths page for query examples.

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("kShortestPathsGraph");
  3. arangosh> db.places.toArray();
  4. arangosh> db.connections.toArray();
  5. arangosh> examples.dropGraph("kShortestPathsGraph");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "Inverness",
  4. "_id" : "places/Inverness",
  5. "_rev" : "_cuv9dW2---",
  6. "label" : "Inverness"
  7. },
  8. {
  9. "_key" : "Aberdeen",
  10. "_id" : "places/Aberdeen",
  11. "_rev" : "_cuv9dW2--_",
  12. "label" : "Aberdeen"
  13. },
  14. {
  15. "_key" : "Leuchars",
  16. "_id" : "places/Leuchars",
  17. "_rev" : "_cuv9dW6---",
  18. "label" : "Leuchars"
  19. },
  20. {
  21. "_key" : "StAndrews",
  22. "_id" : "places/StAndrews",
  23. "_rev" : "_cuv9dW6--_",
  24. "label" : "StAndrews"
  25. },
  26. {
  27. "_key" : "Edinburgh",
  28. "_id" : "places/Edinburgh",
  29. "_rev" : "_cuv9dX----",
  30. "label" : "Edinburgh"
  31. },
  32. {
  33. "_key" : "Glasgow",
  34. "_id" : "places/Glasgow",
  35. "_rev" : "_cuv9dX---_",
  36. "label" : "Glasgow"
  37. },
  38. {
  39. "_key" : "York",
  40. "_id" : "places/York",
  41. "_rev" : "_cuv9dX---A",
  42. "label" : "York"
  43. },
  44. {
  45. "_key" : "Carlisle",
  46. "_id" : "places/Carlisle",
  47. "_rev" : "_cuv9dXC---",
  48. "label" : "Carlisle"
  49. },
  50. {
  51. "_key" : "Birmingham",
  52. "_id" : "places/Birmingham",
  53. "_rev" : "_cuv9dXC--_",
  54. "label" : "Birmingham"
  55. },
  56. {
  57. "_key" : "London",
  58. "_id" : "places/London",
  59. "_rev" : "_cuv9dXG---",
  60. "label" : "London"
  61. },
  62. {
  63. "_key" : "Brussels",
  64. "_id" : "places/Brussels",
  65. "_rev" : "_cuv9dXG--_",
  66. "label" : "Brussels"
  67. },
  68. {
  69. "_key" : "Cologne",
  70. "_id" : "places/Cologne",
  71. "_rev" : "_cuv9dXG--A",
  72. "label" : "Cologne"
  73. },
  74. {
  75. "_key" : "Toronto",
  76. "_id" : "places/Toronto",
  77. "_rev" : "_cuv9dXK---",
  78. "label" : "Toronto"
  79. },
  80. {
  81. "_key" : "Winnipeg",
  82. "_id" : "places/Winnipeg",
  83. "_rev" : "_cuv9dXK--_",
  84. "label" : "Winnipeg"
  85. },
  86. {
  87. "_key" : "Saskatoon",
  88. "_id" : "places/Saskatoon",
  89. "_rev" : "_cuv9dXK--A",
  90. "label" : "Saskatoon"
  91. },
  92. {
  93. "_key" : "Edmonton",
  94. "_id" : "places/Edmonton",
  95. "_rev" : "_cuv9dXO---",
  96. "label" : "Edmonton"
  97. },
  98. {
  99. "_key" : "Jasper",
  100. "_id" : "places/Jasper",
  101. "_rev" : "_cuv9dXO--_",
  102. "label" : "Jasper"
  103. },
  104. {
  105. "_key" : "Vancouver",
  106. "_id" : "places/Vancouver",
  107. "_rev" : "_cuv9dXO--A",
  108. "label" : "Vancouver"
  109. }
  110. ]
  111. [
  112. {
  113. "_key" : "79983",
  114. "_id" : "connections/79983",
  115. "_from" : "places/Inverness",
  116. "_to" : "places/Aberdeen",
  117. "_rev" : "_cuv9dXS---",
  118. "travelTime" : 3
  119. },
  120. {
  121. "_key" : "79985",
  122. "_id" : "connections/79985",
  123. "_from" : "places/Aberdeen",
  124. "_to" : "places/Inverness",
  125. "_rev" : "_cuv9dXS--_",
  126. "travelTime" : 2.5
  127. },
  128. {
  129. "_key" : "79987",
  130. "_id" : "connections/79987",
  131. "_from" : "places/Aberdeen",
  132. "_to" : "places/Leuchars",
  133. "_rev" : "_cuv9dXS--A",
  134. "travelTime" : 1.5
  135. },
  136. {
  137. "_key" : "79989",
  138. "_id" : "connections/79989",
  139. "_from" : "places/Leuchars",
  140. "_to" : "places/Aberdeen",
  141. "_rev" : "_cuv9dXW---",
  142. "travelTime" : 1
  143. },
  144. {
  145. "_key" : "79991",
  146. "_id" : "connections/79991",
  147. "_from" : "places/Leuchars",
  148. "_to" : "places/Edinburgh",
  149. "_rev" : "_cuv9dXW--_",
  150. "travelTime" : 1.5
  151. },
  152. {
  153. "_key" : "79993",
  154. "_id" : "connections/79993",
  155. "_from" : "places/Edinburgh",
  156. "_to" : "places/Leuchars",
  157. "_rev" : "_cuv9dXW--A",
  158. "travelTime" : 3
  159. },
  160. {
  161. "_key" : "79995",
  162. "_id" : "connections/79995",
  163. "_from" : "places/Edinburgh",
  164. "_to" : "places/Glasgow",
  165. "_rev" : "_cuv9dXa---",
  166. "travelTime" : 1
  167. },
  168. {
  169. "_key" : "79997",
  170. "_id" : "connections/79997",
  171. "_from" : "places/Glasgow",
  172. "_to" : "places/Edinburgh",
  173. "_rev" : "_cuv9dXa--_",
  174. "travelTime" : 1
  175. },
  176. {
  177. "_key" : "79999",
  178. "_id" : "connections/79999",
  179. "_from" : "places/Edinburgh",
  180. "_to" : "places/York",
  181. "_rev" : "_cuv9dXa--A",
  182. "travelTime" : 3.5
  183. },
  184. {
  185. "_key" : "80001",
  186. "_id" : "connections/80001",
  187. "_from" : "places/York",
  188. "_to" : "places/Edinburgh",
  189. "_rev" : "_cuv9dXe---",
  190. "travelTime" : 4
  191. },
  192. {
  193. "_key" : "80003",
  194. "_id" : "connections/80003",
  195. "_from" : "places/Glasgow",
  196. "_to" : "places/Carlisle",
  197. "_rev" : "_cuv9dXe--_",
  198. "travelTime" : 1
  199. },
  200. {
  201. "_key" : "80005",
  202. "_id" : "connections/80005",
  203. "_from" : "places/Carlisle",
  204. "_to" : "places/Glasgow",
  205. "_rev" : "_cuv9dXi---",
  206. "travelTime" : 1
  207. },
  208. {
  209. "_key" : "80007",
  210. "_id" : "connections/80007",
  211. "_from" : "places/Carlisle",
  212. "_to" : "places/York",
  213. "_rev" : "_cuv9dXi--_",
  214. "travelTime" : 2.5
  215. },
  216. {
  217. "_key" : "80009",
  218. "_id" : "connections/80009",
  219. "_from" : "places/York",
  220. "_to" : "places/Carlisle",
  221. "_rev" : "_cuv9dXm---",
  222. "travelTime" : 3.5
  223. },
  224. {
  225. "_key" : "80011",
  226. "_id" : "connections/80011",
  227. "_from" : "places/Carlisle",
  228. "_to" : "places/Birmingham",
  229. "_rev" : "_cuv9dXm--_",
  230. "travelTime" : 2
  231. },
  232. {
  233. "_key" : "80013",
  234. "_id" : "connections/80013",
  235. "_from" : "places/Birmingham",
  236. "_to" : "places/Carlisle",
  237. "_rev" : "_cuv9dXm--A",
  238. "travelTime" : 1
  239. },
  240. {
  241. "_key" : "80015",
  242. "_id" : "connections/80015",
  243. "_from" : "places/Birmingham",
  244. "_to" : "places/London",
  245. "_rev" : "_cuv9dXq---",
  246. "travelTime" : 1.5
  247. },
  248. {
  249. "_key" : "80017",
  250. "_id" : "connections/80017",
  251. "_from" : "places/London",
  252. "_to" : "places/Birmingham",
  253. "_rev" : "_cuv9dXq--_",
  254. "travelTime" : 2.5
  255. },
  256. {
  257. "_key" : "80019",
  258. "_id" : "connections/80019",
  259. "_from" : "places/Leuchars",
  260. "_to" : "places/StAndrews",
  261. "_rev" : "_cuv9dXu---",
  262. "travelTime" : 0.2
  263. },
  264. {
  265. "_key" : "80021",
  266. "_id" : "connections/80021",
  267. "_from" : "places/StAndrews",
  268. "_to" : "places/Leuchars",
  269. "_rev" : "_cuv9dXu--_",
  270. "travelTime" : 0.2
  271. },
  272. {
  273. "_key" : "80023",
  274. "_id" : "connections/80023",
  275. "_from" : "places/York",
  276. "_to" : "places/London",
  277. "_rev" : "_cuv9dXu--A",
  278. "travelTime" : 1.8
  279. },
  280. {
  281. "_key" : "80025",
  282. "_id" : "connections/80025",
  283. "_from" : "places/London",
  284. "_to" : "places/York",
  285. "_rev" : "_cuv9dXy---",
  286. "travelTime" : 2
  287. },
  288. {
  289. "_key" : "80027",
  290. "_id" : "connections/80027",
  291. "_from" : "places/London",
  292. "_to" : "places/Brussels",
  293. "_rev" : "_cuv9dXy--_",
  294. "travelTime" : 2.5
  295. },
  296. {
  297. "_key" : "80029",
  298. "_id" : "connections/80029",
  299. "_from" : "places/Brussels",
  300. "_to" : "places/London",
  301. "_rev" : "_cuv9dX2---",
  302. "travelTime" : 3.5
  303. },
  304. {
  305. "_key" : "80031",
  306. "_id" : "connections/80031",
  307. "_from" : "places/Brussels",
  308. "_to" : "places/Cologne",
  309. "_rev" : "_cuv9dX2--_",
  310. "travelTime" : 2
  311. },
  312. {
  313. "_key" : "80033",
  314. "_id" : "connections/80033",
  315. "_from" : "places/Cologne",
  316. "_to" : "places/Brussels",
  317. "_rev" : "_cuv9dX6---",
  318. "travelTime" : 1.5
  319. },
  320. {
  321. "_key" : "80035",
  322. "_id" : "connections/80035",
  323. "_from" : "places/Toronto",
  324. "_to" : "places/Winnipeg",
  325. "_rev" : "_cuv9dX6--_",
  326. "travelTime" : 36
  327. },
  328. {
  329. "_key" : "80037",
  330. "_id" : "connections/80037",
  331. "_from" : "places/Winnipeg",
  332. "_to" : "places/Toronto",
  333. "_rev" : "_cuv9dY----",
  334. "travelTime" : 35
  335. },
  336. {
  337. "_key" : "80039",
  338. "_id" : "connections/80039",
  339. "_from" : "places/Winnipeg",
  340. "_to" : "places/Saskatoon",
  341. "_rev" : "_cuv9dY---_",
  342. "travelTime" : 12
  343. },
  344. {
  345. "_key" : "80041",
  346. "_id" : "connections/80041",
  347. "_from" : "places/Saskatoon",
  348. "_to" : "places/Winnipeg",
  349. "_rev" : "_cuv9dY---A",
  350. "travelTime" : 5
  351. },
  352. {
  353. "_key" : "80043",
  354. "_id" : "connections/80043",
  355. "_from" : "places/Saskatoon",
  356. "_to" : "places/Edmonton",
  357. "_rev" : "_cuv9dY---B",
  358. "travelTime" : 12
  359. },
  360. {
  361. "_key" : "80045",
  362. "_id" : "connections/80045",
  363. "_from" : "places/Edmonton",
  364. "_to" : "places/Saskatoon",
  365. "_rev" : "_cuv9dYC---",
  366. "travelTime" : 17
  367. },
  368. {
  369. "_key" : "80047",
  370. "_id" : "connections/80047",
  371. "_from" : "places/Edmonton",
  372. "_to" : "places/Jasper",
  373. "_rev" : "_cuv9dYC--_",
  374. "travelTime" : 6
  375. },
  376. {
  377. "_key" : "80049",
  378. "_id" : "connections/80049",
  379. "_from" : "places/Jasper",
  380. "_to" : "places/Edmonton",
  381. "_rev" : "_cuv9dYC--A",
  382. "travelTime" : 5
  383. },
  384. {
  385. "_key" : "80051",
  386. "_id" : "connections/80051",
  387. "_from" : "places/Jasper",
  388. "_to" : "places/Vancouver",
  389. "_rev" : "_cuv9dYC--B",
  390. "travelTime" : 12
  391. },
  392. {
  393. "_key" : "80053",
  394. "_id" : "connections/80053",
  395. "_from" : "places/Vancouver",
  396. "_to" : "places/Jasper",
  397. "_rev" : "_cuv9dYG---",
  398. "travelTime" : 13
  399. }
  400. ]

The World Graph

World Graph

The world country graph structures its nodes like that: world → continent → country → capital. In some cases edge directions aren’t forward (therefore it will be displayed disjunct in the graph viewer). It has two ways of creating it. One using the named graph utilities (worldCountry), one without (worldCountryUnManaged). It is used to demonstrate raw traversal operations.

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("worldCountry");
  3. arangosh> db.worldVertices.toArray();
  4. arangosh> db.worldEdges.toArray();
  5. arangosh> examples.dropGraph("worldCountry");
  6. arangosh> var g = examples.loadGraph("worldCountryUnManaged");
  7. arangosh> examples.dropGraph("worldCountryUnManaged");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "world",
  4. "_id" : "worldVertices/world",
  5. "_rev" : "_cuv9dci---",
  6. "name" : "World",
  7. "type" : "root"
  8. },
  9. {
  10. "_key" : "continent-africa",
  11. "_id" : "worldVertices/continent-africa",
  12. "_rev" : "_cuv9dcm---",
  13. "name" : "Africa",
  14. "type" : "continent"
  15. },
  16. {
  17. "_key" : "continent-asia",
  18. "_id" : "worldVertices/continent-asia",
  19. "_rev" : "_cuv9dcm--_",
  20. "name" : "Asia",
  21. "type" : "continent"
  22. },
  23. {
  24. "_key" : "continent-australia",
  25. "_id" : "worldVertices/continent-australia",
  26. "_rev" : "_cuv9dcm--A",
  27. "name" : "Australia",
  28. "type" : "continent"
  29. },
  30. {
  31. "_key" : "continent-europe",
  32. "_id" : "worldVertices/continent-europe",
  33. "_rev" : "_cuv9dcq---",
  34. "name" : "Europe",
  35. "type" : "continent"
  36. },
  37. {
  38. "_key" : "continent-north-america",
  39. "_id" : "worldVertices/continent-north-america",
  40. "_rev" : "_cuv9dcq--_",
  41. "name" : "North America",
  42. "type" : "continent"
  43. },
  44. {
  45. "_key" : "continent-south-america",
  46. "_id" : "worldVertices/continent-south-america",
  47. "_rev" : "_cuv9dcq--A",
  48. "name" : "South America",
  49. "type" : "continent"
  50. },
  51. {
  52. "_key" : "country-afghanistan",
  53. "_id" : "worldVertices/country-afghanistan",
  54. "_rev" : "_cuv9dcu---",
  55. "name" : "Afghanistan",
  56. "type" : "country",
  57. "code" : "AFG"
  58. },
  59. {
  60. "_key" : "country-albania",
  61. "_id" : "worldVertices/country-albania",
  62. "_rev" : "_cuv9dcu--_",
  63. "name" : "Albania",
  64. "type" : "country",
  65. "code" : "ALB"
  66. },
  67. {
  68. "_key" : "country-algeria",
  69. "_id" : "worldVertices/country-algeria",
  70. "_rev" : "_cuv9dcu--A",
  71. "name" : "Algeria",
  72. "type" : "country",
  73. "code" : "DZA"
  74. },
  75. {
  76. "_key" : "country-andorra",
  77. "_id" : "worldVertices/country-andorra",
  78. "_rev" : "_cuv9dcy---",
  79. "name" : "Andorra",
  80. "type" : "country",
  81. "code" : "AND"
  82. },
  83. {
  84. "_key" : "country-angola",
  85. "_id" : "worldVertices/country-angola",
  86. "_rev" : "_cuv9dcy--_",
  87. "name" : "Angola",
  88. "type" : "country",
  89. "code" : "AGO"
  90. },
  91. {
  92. "_key" : "country-antigua-and-barbuda",
  93. "_id" : "worldVertices/country-antigua-and-barbuda",
  94. "_rev" : "_cuv9dcy--A",
  95. "name" : "Antigua and Barbuda",
  96. "type" : "country",
  97. "code" : "ATG"
  98. },
  99. {
  100. "_key" : "country-argentina",
  101. "_id" : "worldVertices/country-argentina",
  102. "_rev" : "_cuv9dc2---",
  103. "name" : "Argentina",
  104. "type" : "country",
  105. "code" : "ARG"
  106. },
  107. {
  108. "_key" : "country-australia",
  109. "_id" : "worldVertices/country-australia",
  110. "_rev" : "_cuv9dc2--_",
  111. "name" : "Australia",
  112. "type" : "country",
  113. "code" : "AUS"
  114. },
  115. {
  116. "_key" : "country-austria",
  117. "_id" : "worldVertices/country-austria",
  118. "_rev" : "_cuv9dd----",
  119. "name" : "Austria",
  120. "type" : "country",
  121. "code" : "AUT"
  122. },
  123. {
  124. "_key" : "country-bahamas",
  125. "_id" : "worldVertices/country-bahamas",
  126. "_rev" : "_cuv9dd---_",
  127. "name" : "Bahamas",
  128. "type" : "country",
  129. "code" : "BHS"
  130. },
  131. {
  132. "_key" : "country-bahrain",
  133. "_id" : "worldVertices/country-bahrain",
  134. "_rev" : "_cuv9dd---A",
  135. "name" : "Bahrain",
  136. "type" : "country",
  137. "code" : "BHR"
  138. },
  139. {
  140. "_key" : "country-bangladesh",
  141. "_id" : "worldVertices/country-bangladesh",
  142. "_rev" : "_cuv9ddC---",
  143. "name" : "Bangladesh",
  144. "type" : "country",
  145. "code" : "BGD"
  146. },
  147. {
  148. "_key" : "country-barbados",
  149. "_id" : "worldVertices/country-barbados",
  150. "_rev" : "_cuv9ddC--_",
  151. "name" : "Barbados",
  152. "type" : "country",
  153. "code" : "BRB"
  154. },
  155. {
  156. "_key" : "country-belgium",
  157. "_id" : "worldVertices/country-belgium",
  158. "_rev" : "_cuv9ddC--A",
  159. "name" : "Belgium",
  160. "type" : "country",
  161. "code" : "BEL"
  162. },
  163. {
  164. "_key" : "country-bhutan",
  165. "_id" : "worldVertices/country-bhutan",
  166. "_rev" : "_cuv9ddC--B",
  167. "name" : "Bhutan",
  168. "type" : "country",
  169. "code" : "BTN"
  170. },
  171. {
  172. "_key" : "country-bolivia",
  173. "_id" : "worldVertices/country-bolivia",
  174. "_rev" : "_cuv9ddG---",
  175. "name" : "Bolivia",
  176. "type" : "country",
  177. "code" : "BOL"
  178. },
  179. {
  180. "_key" : "country-bosnia-and-herzegovina",
  181. "_id" : "worldVertices/country-bosnia-and-herzegovina",
  182. "_rev" : "_cuv9ddG--_",
  183. "name" : "Bosnia and Herzegovina",
  184. "type" : "country",
  185. "code" : "BIH"
  186. },
  187. {
  188. "_key" : "country-botswana",
  189. "_id" : "worldVertices/country-botswana",
  190. "_rev" : "_cuv9ddG--A",
  191. "name" : "Botswana",
  192. "type" : "country",
  193. "code" : "BWA"
  194. },
  195. {
  196. "_key" : "country-brazil",
  197. "_id" : "worldVertices/country-brazil",
  198. "_rev" : "_cuv9ddK---",
  199. "name" : "Brazil",
  200. "type" : "country",
  201. "code" : "BRA"
  202. },
  203. {
  204. "_key" : "country-brunei",
  205. "_id" : "worldVertices/country-brunei",
  206. "_rev" : "_cuv9ddK--_",
  207. "name" : "Brunei",
  208. "type" : "country",
  209. "code" : "BRN"
  210. },
  211. {
  212. "_key" : "country-bulgaria",
  213. "_id" : "worldVertices/country-bulgaria",
  214. "_rev" : "_cuv9ddK--A",
  215. "name" : "Bulgaria",
  216. "type" : "country",
  217. "code" : "BGR"
  218. },
  219. {
  220. "_key" : "country-burkina-faso",
  221. "_id" : "worldVertices/country-burkina-faso",
  222. "_rev" : "_cuv9ddO---",
  223. "name" : "Burkina Faso",
  224. "type" : "country",
  225. "code" : "BFA"
  226. },
  227. {
  228. "_key" : "country-burundi",
  229. "_id" : "worldVertices/country-burundi",
  230. "_rev" : "_cuv9ddO--_",
  231. "name" : "Burundi",
  232. "type" : "country",
  233. "code" : "BDI"
  234. },
  235. {
  236. "_key" : "country-cambodia",
  237. "_id" : "worldVertices/country-cambodia",
  238. "_rev" : "_cuv9ddO--A",
  239. "name" : "Cambodia",
  240. "type" : "country",
  241. "code" : "KHM"
  242. },
  243. {
  244. "_key" : "country-cameroon",
  245. "_id" : "worldVertices/country-cameroon",
  246. "_rev" : "_cuv9ddS---",
  247. "name" : "Cameroon",
  248. "type" : "country",
  249. "code" : "CMR"
  250. },
  251. {
  252. "_key" : "country-canada",
  253. "_id" : "worldVertices/country-canada",
  254. "_rev" : "_cuv9ddS--_",
  255. "name" : "Canada",
  256. "type" : "country",
  257. "code" : "CAN"
  258. },
  259. {
  260. "_key" : "country-chad",
  261. "_id" : "worldVertices/country-chad",
  262. "_rev" : "_cuv9ddS--A",
  263. "name" : "Chad",
  264. "type" : "country",
  265. "code" : "TCD"
  266. },
  267. {
  268. "_key" : "country-chile",
  269. "_id" : "worldVertices/country-chile",
  270. "_rev" : "_cuv9ddS--B",
  271. "name" : "Chile",
  272. "type" : "country",
  273. "code" : "CHL"
  274. },
  275. {
  276. "_key" : "country-colombia",
  277. "_id" : "worldVertices/country-colombia",
  278. "_rev" : "_cuv9ddW---",
  279. "name" : "Colombia",
  280. "type" : "country",
  281. "code" : "COL"
  282. },
  283. {
  284. "_key" : "country-cote-d-ivoire",
  285. "_id" : "worldVertices/country-cote-d-ivoire",
  286. "_rev" : "_cuv9ddW--_",
  287. "name" : "Cote d'Ivoire",
  288. "type" : "country",
  289. "code" : "CIV"
  290. },
  291. {
  292. "_key" : "country-croatia",
  293. "_id" : "worldVertices/country-croatia",
  294. "_rev" : "_cuv9ddW--A",
  295. "name" : "Croatia",
  296. "type" : "country",
  297. "code" : "HRV"
  298. },
  299. {
  300. "_key" : "country-czech-republic",
  301. "_id" : "worldVertices/country-czech-republic",
  302. "_rev" : "_cuv9dda---",
  303. "name" : "Czech Republic",
  304. "type" : "country",
  305. "code" : "CZE"
  306. },
  307. {
  308. "_key" : "country-denmark",
  309. "_id" : "worldVertices/country-denmark",
  310. "_rev" : "_cuv9dda--_",
  311. "name" : "Denmark",
  312. "type" : "country",
  313. "code" : "DNK"
  314. },
  315. {
  316. "_key" : "country-ecuador",
  317. "_id" : "worldVertices/country-ecuador",
  318. "_rev" : "_cuv9dda--A",
  319. "name" : "Ecuador",
  320. "type" : "country",
  321. "code" : "ECU"
  322. },
  323. {
  324. "_key" : "country-egypt",
  325. "_id" : "worldVertices/country-egypt",
  326. "_rev" : "_cuv9dde---",
  327. "name" : "Egypt",
  328. "type" : "country",
  329. "code" : "EGY"
  330. },
  331. {
  332. "_key" : "country-eritrea",
  333. "_id" : "worldVertices/country-eritrea",
  334. "_rev" : "_cuv9dde--_",
  335. "name" : "Eritrea",
  336. "type" : "country",
  337. "code" : "ERI"
  338. },
  339. {
  340. "_key" : "country-finland",
  341. "_id" : "worldVertices/country-finland",
  342. "_rev" : "_cuv9ddi---",
  343. "name" : "Finland",
  344. "type" : "country",
  345. "code" : "FIN"
  346. },
  347. {
  348. "_key" : "country-france",
  349. "_id" : "worldVertices/country-france",
  350. "_rev" : "_cuv9ddi--_",
  351. "name" : "France",
  352. "type" : "country",
  353. "code" : "FRA"
  354. },
  355. {
  356. "_key" : "country-germany",
  357. "_id" : "worldVertices/country-germany",
  358. "_rev" : "_cuv9ddi--A",
  359. "name" : "Germany",
  360. "type" : "country",
  361. "code" : "DEU"
  362. },
  363. {
  364. "_key" : "country-people-s-republic-of-china",
  365. "_id" : "worldVertices/country-people-s-republic-of-china",
  366. "_rev" : "_cuv9ddm---",
  367. "name" : "People's Republic of China",
  368. "type" : "country",
  369. "code" : "CHN"
  370. },
  371. {
  372. "_key" : "capital-algiers",
  373. "_id" : "worldVertices/capital-algiers",
  374. "_rev" : "_cuv9ddm--_",
  375. "name" : "Algiers",
  376. "type" : "capital"
  377. },
  378. {
  379. "_key" : "capital-andorra-la-vella",
  380. "_id" : "worldVertices/capital-andorra-la-vella",
  381. "_rev" : "_cuv9ddq---",
  382. "name" : "Andorra la Vella",
  383. "type" : "capital"
  384. },
  385. {
  386. "_key" : "capital-asmara",
  387. "_id" : "worldVertices/capital-asmara",
  388. "_rev" : "_cuv9ddq--_",
  389. "name" : "Asmara",
  390. "type" : "capital"
  391. },
  392. {
  393. "_key" : "capital-bandar-seri-begawan",
  394. "_id" : "worldVertices/capital-bandar-seri-begawan",
  395. "_rev" : "_cuv9ddq--A",
  396. "name" : "Bandar Seri Begawan",
  397. "type" : "capital"
  398. },
  399. {
  400. "_key" : "capital-beijing",
  401. "_id" : "worldVertices/capital-beijing",
  402. "_rev" : "_cuv9ddq--B",
  403. "name" : "Beijing",
  404. "type" : "capital"
  405. },
  406. {
  407. "_key" : "capital-berlin",
  408. "_id" : "worldVertices/capital-berlin",
  409. "_rev" : "_cuv9ddu---",
  410. "name" : "Berlin",
  411. "type" : "capital"
  412. },
  413. {
  414. "_key" : "capital-bogota",
  415. "_id" : "worldVertices/capital-bogota",
  416. "_rev" : "_cuv9ddu--_",
  417. "name" : "Bogota",
  418. "type" : "capital"
  419. },
  420. {
  421. "_key" : "capital-brasilia",
  422. "_id" : "worldVertices/capital-brasilia",
  423. "_rev" : "_cuv9ddu--A",
  424. "name" : "Brasilia",
  425. "type" : "capital"
  426. },
  427. {
  428. "_key" : "capital-bridgetown",
  429. "_id" : "worldVertices/capital-bridgetown",
  430. "_rev" : "_cuv9ddy---",
  431. "name" : "Bridgetown",
  432. "type" : "capital"
  433. },
  434. {
  435. "_key" : "capital-brussels",
  436. "_id" : "worldVertices/capital-brussels",
  437. "_rev" : "_cuv9ddy--_",
  438. "name" : "Brussels",
  439. "type" : "capital"
  440. },
  441. {
  442. "_key" : "capital-buenos-aires",
  443. "_id" : "worldVertices/capital-buenos-aires",
  444. "_rev" : "_cuv9ddy--A",
  445. "name" : "Buenos Aires",
  446. "type" : "capital"
  447. },
  448. {
  449. "_key" : "capital-bujumbura",
  450. "_id" : "worldVertices/capital-bujumbura",
  451. "_rev" : "_cuv9dd2---",
  452. "name" : "Bujumbura",
  453. "type" : "capital"
  454. },
  455. {
  456. "_key" : "capital-cairo",
  457. "_id" : "worldVertices/capital-cairo",
  458. "_rev" : "_cuv9dd2--_",
  459. "name" : "Cairo",
  460. "type" : "capital"
  461. },
  462. {
  463. "_key" : "capital-canberra",
  464. "_id" : "worldVertices/capital-canberra",
  465. "_rev" : "_cuv9dd2--A",
  466. "name" : "Canberra",
  467. "type" : "capital"
  468. },
  469. {
  470. "_key" : "capital-copenhagen",
  471. "_id" : "worldVertices/capital-copenhagen",
  472. "_rev" : "_cuv9dd6---",
  473. "name" : "Copenhagen",
  474. "type" : "capital"
  475. },
  476. {
  477. "_key" : "capital-dhaka",
  478. "_id" : "worldVertices/capital-dhaka",
  479. "_rev" : "_cuv9dd6--_",
  480. "name" : "Dhaka",
  481. "type" : "capital"
  482. },
  483. {
  484. "_key" : "capital-gaborone",
  485. "_id" : "worldVertices/capital-gaborone",
  486. "_rev" : "_cuv9de----",
  487. "name" : "Gaborone",
  488. "type" : "capital"
  489. },
  490. {
  491. "_key" : "capital-helsinki",
  492. "_id" : "worldVertices/capital-helsinki",
  493. "_rev" : "_cuv9de---_",
  494. "name" : "Helsinki",
  495. "type" : "capital"
  496. },
  497. {
  498. "_key" : "capital-kabul",
  499. "_id" : "worldVertices/capital-kabul",
  500. "_rev" : "_cuv9de---A",
  501. "name" : "Kabul",
  502. "type" : "capital"
  503. },
  504. {
  505. "_key" : "capital-la-paz",
  506. "_id" : "worldVertices/capital-la-paz",
  507. "_rev" : "_cuv9deC---",
  508. "name" : "La Paz",
  509. "type" : "capital"
  510. },
  511. {
  512. "_key" : "capital-luanda",
  513. "_id" : "worldVertices/capital-luanda",
  514. "_rev" : "_cuv9deC--_",
  515. "name" : "Luanda",
  516. "type" : "capital"
  517. },
  518. {
  519. "_key" : "capital-manama",
  520. "_id" : "worldVertices/capital-manama",
  521. "_rev" : "_cuv9deC--A",
  522. "name" : "Manama",
  523. "type" : "capital"
  524. },
  525. {
  526. "_key" : "capital-nassau",
  527. "_id" : "worldVertices/capital-nassau",
  528. "_rev" : "_cuv9deG---",
  529. "name" : "Nassau",
  530. "type" : "capital"
  531. },
  532. {
  533. "_key" : "capital-n-djamena",
  534. "_id" : "worldVertices/capital-n-djamena",
  535. "_rev" : "_cuv9deG--_",
  536. "name" : "N'Djamena",
  537. "type" : "capital"
  538. },
  539. {
  540. "_key" : "capital-ottawa",
  541. "_id" : "worldVertices/capital-ottawa",
  542. "_rev" : "_cuv9deG--A",
  543. "name" : "Ottawa",
  544. "type" : "capital"
  545. },
  546. {
  547. "_key" : "capital-ouagadougou",
  548. "_id" : "worldVertices/capital-ouagadougou",
  549. "_rev" : "_cuv9deG--B",
  550. "name" : "Ouagadougou",
  551. "type" : "capital"
  552. },
  553. {
  554. "_key" : "capital-paris",
  555. "_id" : "worldVertices/capital-paris",
  556. "_rev" : "_cuv9deK---",
  557. "name" : "Paris",
  558. "type" : "capital"
  559. },
  560. {
  561. "_key" : "capital-phnom-penh",
  562. "_id" : "worldVertices/capital-phnom-penh",
  563. "_rev" : "_cuv9deK--_",
  564. "name" : "Phnom Penh",
  565. "type" : "capital"
  566. },
  567. {
  568. "_key" : "capital-prague",
  569. "_id" : "worldVertices/capital-prague",
  570. "_rev" : "_cuv9deK--A",
  571. "name" : "Prague",
  572. "type" : "capital"
  573. },
  574. {
  575. "_key" : "capital-quito",
  576. "_id" : "worldVertices/capital-quito",
  577. "_rev" : "_cuv9deK--B",
  578. "name" : "Quito",
  579. "type" : "capital"
  580. },
  581. {
  582. "_key" : "capital-saint-john-s",
  583. "_id" : "worldVertices/capital-saint-john-s",
  584. "_rev" : "_cuv9deO---",
  585. "name" : "Saint John's",
  586. "type" : "capital"
  587. },
  588. {
  589. "_key" : "capital-santiago",
  590. "_id" : "worldVertices/capital-santiago",
  591. "_rev" : "_cuv9deO--_",
  592. "name" : "Santiago",
  593. "type" : "capital"
  594. },
  595. {
  596. "_key" : "capital-sarajevo",
  597. "_id" : "worldVertices/capital-sarajevo",
  598. "_rev" : "_cuv9deO--A",
  599. "name" : "Sarajevo",
  600. "type" : "capital"
  601. },
  602. {
  603. "_key" : "capital-sofia",
  604. "_id" : "worldVertices/capital-sofia",
  605. "_rev" : "_cuv9deO--B",
  606. "name" : "Sofia",
  607. "type" : "capital"
  608. },
  609. {
  610. "_key" : "capital-thimphu",
  611. "_id" : "worldVertices/capital-thimphu",
  612. "_rev" : "_cuv9deO--C",
  613. "name" : "Thimphu",
  614. "type" : "capital"
  615. },
  616. {
  617. "_key" : "capital-tirana",
  618. "_id" : "worldVertices/capital-tirana",
  619. "_rev" : "_cuv9deS---",
  620. "name" : "Tirana",
  621. "type" : "capital"
  622. },
  623. {
  624. "_key" : "capital-vienna",
  625. "_id" : "worldVertices/capital-vienna",
  626. "_rev" : "_cuv9deS--_",
  627. "name" : "Vienna",
  628. "type" : "capital"
  629. },
  630. {
  631. "_key" : "capital-yamoussoukro",
  632. "_id" : "worldVertices/capital-yamoussoukro",
  633. "_rev" : "_cuv9deS--A",
  634. "name" : "Yamoussoukro",
  635. "type" : "capital"
  636. },
  637. {
  638. "_key" : "capital-yaounde",
  639. "_id" : "worldVertices/capital-yaounde",
  640. "_rev" : "_cuv9deW---",
  641. "name" : "Yaounde",
  642. "type" : "capital"
  643. },
  644. {
  645. "_key" : "capital-zagreb",
  646. "_id" : "worldVertices/capital-zagreb",
  647. "_rev" : "_cuv9deW--_",
  648. "name" : "Zagreb",
  649. "type" : "capital"
  650. }
  651. ]
  652. [
  653. {
  654. "_key" : "80381",
  655. "_id" : "worldEdges/80381",
  656. "_from" : "worldVertices/continent-africa",
  657. "_to" : "worldVertices/world",
  658. "_rev" : "_cuv9deW--A",
  659. "type" : "is-in"
  660. },
  661. {
  662. "_key" : "80383",
  663. "_id" : "worldEdges/80383",
  664. "_from" : "worldVertices/continent-asia",
  665. "_to" : "worldVertices/world",
  666. "_rev" : "_cuv9dea---",
  667. "type" : "is-in"
  668. },
  669. {
  670. "_key" : "80385",
  671. "_id" : "worldEdges/80385",
  672. "_from" : "worldVertices/continent-australia",
  673. "_to" : "worldVertices/world",
  674. "_rev" : "_cuv9dea--_",
  675. "type" : "is-in"
  676. },
  677. {
  678. "_key" : "80387",
  679. "_id" : "worldEdges/80387",
  680. "_from" : "worldVertices/continent-europe",
  681. "_to" : "worldVertices/world",
  682. "_rev" : "_cuv9dea--A",
  683. "type" : "is-in"
  684. },
  685. {
  686. "_key" : "80389",
  687. "_id" : "worldEdges/80389",
  688. "_from" : "worldVertices/continent-north-america",
  689. "_to" : "worldVertices/world",
  690. "_rev" : "_cuv9dea--B",
  691. "type" : "is-in"
  692. },
  693. {
  694. "_key" : "80391",
  695. "_id" : "worldEdges/80391",
  696. "_from" : "worldVertices/continent-south-america",
  697. "_to" : "worldVertices/world",
  698. "_rev" : "_cuv9dee---",
  699. "type" : "is-in"
  700. },
  701. {
  702. "_key" : "80393",
  703. "_id" : "worldEdges/80393",
  704. "_from" : "worldVertices/country-afghanistan",
  705. "_to" : "worldVertices/continent-asia",
  706. "_rev" : "_cuv9dee--_",
  707. "type" : "is-in"
  708. },
  709. {
  710. "_key" : "80395",
  711. "_id" : "worldEdges/80395",
  712. "_from" : "worldVertices/country-albania",
  713. "_to" : "worldVertices/continent-europe",
  714. "_rev" : "_cuv9dee--A",
  715. "type" : "is-in"
  716. },
  717. {
  718. "_key" : "80397",
  719. "_id" : "worldEdges/80397",
  720. "_from" : "worldVertices/country-algeria",
  721. "_to" : "worldVertices/continent-africa",
  722. "_rev" : "_cuv9dee--B",
  723. "type" : "is-in"
  724. },
  725. {
  726. "_key" : "80399",
  727. "_id" : "worldEdges/80399",
  728. "_from" : "worldVertices/country-andorra",
  729. "_to" : "worldVertices/continent-europe",
  730. "_rev" : "_cuv9dei---",
  731. "type" : "is-in"
  732. },
  733. {
  734. "_key" : "80401",
  735. "_id" : "worldEdges/80401",
  736. "_from" : "worldVertices/country-angola",
  737. "_to" : "worldVertices/continent-africa",
  738. "_rev" : "_cuv9dei--_",
  739. "type" : "is-in"
  740. },
  741. {
  742. "_key" : "80403",
  743. "_id" : "worldEdges/80403",
  744. "_from" : "worldVertices/country-antigua-and-barbuda",
  745. "_to" : "worldVertices/continent-north-america",
  746. "_rev" : "_cuv9dei--A",
  747. "type" : "is-in"
  748. },
  749. {
  750. "_key" : "80405",
  751. "_id" : "worldEdges/80405",
  752. "_from" : "worldVertices/country-argentina",
  753. "_to" : "worldVertices/continent-south-america",
  754. "_rev" : "_cuv9dei--B",
  755. "type" : "is-in"
  756. },
  757. {
  758. "_key" : "80407",
  759. "_id" : "worldEdges/80407",
  760. "_from" : "worldVertices/country-australia",
  761. "_to" : "worldVertices/continent-australia",
  762. "_rev" : "_cuv9dei--C",
  763. "type" : "is-in"
  764. },
  765. {
  766. "_key" : "80409",
  767. "_id" : "worldEdges/80409",
  768. "_from" : "worldVertices/country-austria",
  769. "_to" : "worldVertices/continent-europe",
  770. "_rev" : "_cuv9dem---",
  771. "type" : "is-in"
  772. },
  773. {
  774. "_key" : "80411",
  775. "_id" : "worldEdges/80411",
  776. "_from" : "worldVertices/country-bahamas",
  777. "_to" : "worldVertices/continent-north-america",
  778. "_rev" : "_cuv9dem--_",
  779. "type" : "is-in"
  780. },
  781. {
  782. "_key" : "80413",
  783. "_id" : "worldEdges/80413",
  784. "_from" : "worldVertices/country-bahrain",
  785. "_to" : "worldVertices/continent-asia",
  786. "_rev" : "_cuv9dem--A",
  787. "type" : "is-in"
  788. },
  789. {
  790. "_key" : "80415",
  791. "_id" : "worldEdges/80415",
  792. "_from" : "worldVertices/country-bangladesh",
  793. "_to" : "worldVertices/continent-asia",
  794. "_rev" : "_cuv9dem--B",
  795. "type" : "is-in"
  796. },
  797. {
  798. "_key" : "80417",
  799. "_id" : "worldEdges/80417",
  800. "_from" : "worldVertices/country-barbados",
  801. "_to" : "worldVertices/continent-north-america",
  802. "_rev" : "_cuv9dem--C",
  803. "type" : "is-in"
  804. },
  805. {
  806. "_key" : "80419",
  807. "_id" : "worldEdges/80419",
  808. "_from" : "worldVertices/country-belgium",
  809. "_to" : "worldVertices/continent-europe",
  810. "_rev" : "_cuv9dem--D",
  811. "type" : "is-in"
  812. },
  813. {
  814. "_key" : "80421",
  815. "_id" : "worldEdges/80421",
  816. "_from" : "worldVertices/country-bhutan",
  817. "_to" : "worldVertices/continent-asia",
  818. "_rev" : "_cuv9deq---",
  819. "type" : "is-in"
  820. },
  821. {
  822. "_key" : "80423",
  823. "_id" : "worldEdges/80423",
  824. "_from" : "worldVertices/country-bolivia",
  825. "_to" : "worldVertices/continent-south-america",
  826. "_rev" : "_cuv9deq--_",
  827. "type" : "is-in"
  828. },
  829. {
  830. "_key" : "80425",
  831. "_id" : "worldEdges/80425",
  832. "_from" : "worldVertices/country-bosnia-and-herzegovina",
  833. "_to" : "worldVertices/continent-europe",
  834. "_rev" : "_cuv9deq--A",
  835. "type" : "is-in"
  836. },
  837. {
  838. "_key" : "80427",
  839. "_id" : "worldEdges/80427",
  840. "_from" : "worldVertices/country-botswana",
  841. "_to" : "worldVertices/continent-africa",
  842. "_rev" : "_cuv9deu---",
  843. "type" : "is-in"
  844. },
  845. {
  846. "_key" : "80429",
  847. "_id" : "worldEdges/80429",
  848. "_from" : "worldVertices/country-brazil",
  849. "_to" : "worldVertices/continent-south-america",
  850. "_rev" : "_cuv9deu--_",
  851. "type" : "is-in"
  852. },
  853. {
  854. "_key" : "80431",
  855. "_id" : "worldEdges/80431",
  856. "_from" : "worldVertices/country-brunei",
  857. "_to" : "worldVertices/continent-asia",
  858. "_rev" : "_cuv9deu--A",
  859. "type" : "is-in"
  860. },
  861. {
  862. "_key" : "80433",
  863. "_id" : "worldEdges/80433",
  864. "_from" : "worldVertices/country-bulgaria",
  865. "_to" : "worldVertices/continent-europe",
  866. "_rev" : "_cuv9deu--B",
  867. "type" : "is-in"
  868. },
  869. {
  870. "_key" : "80435",
  871. "_id" : "worldEdges/80435",
  872. "_from" : "worldVertices/country-burkina-faso",
  873. "_to" : "worldVertices/continent-africa",
  874. "_rev" : "_cuv9deu--C",
  875. "type" : "is-in"
  876. },
  877. {
  878. "_key" : "80437",
  879. "_id" : "worldEdges/80437",
  880. "_from" : "worldVertices/country-burundi",
  881. "_to" : "worldVertices/continent-africa",
  882. "_rev" : "_cuv9dey---",
  883. "type" : "is-in"
  884. },
  885. {
  886. "_key" : "80439",
  887. "_id" : "worldEdges/80439",
  888. "_from" : "worldVertices/country-cambodia",
  889. "_to" : "worldVertices/continent-asia",
  890. "_rev" : "_cuv9dey--_",
  891. "type" : "is-in"
  892. },
  893. {
  894. "_key" : "80441",
  895. "_id" : "worldEdges/80441",
  896. "_from" : "worldVertices/country-cameroon",
  897. "_to" : "worldVertices/continent-africa",
  898. "_rev" : "_cuv9dey--A",
  899. "type" : "is-in"
  900. },
  901. {
  902. "_key" : "80443",
  903. "_id" : "worldEdges/80443",
  904. "_from" : "worldVertices/country-canada",
  905. "_to" : "worldVertices/continent-north-america",
  906. "_rev" : "_cuv9dey--B",
  907. "type" : "is-in"
  908. },
  909. {
  910. "_key" : "80445",
  911. "_id" : "worldEdges/80445",
  912. "_from" : "worldVertices/country-chad",
  913. "_to" : "worldVertices/continent-africa",
  914. "_rev" : "_cuv9de2---",
  915. "type" : "is-in"
  916. },
  917. {
  918. "_key" : "80447",
  919. "_id" : "worldEdges/80447",
  920. "_from" : "worldVertices/country-chile",
  921. "_to" : "worldVertices/continent-south-america",
  922. "_rev" : "_cuv9de2--_",
  923. "type" : "is-in"
  924. },
  925. {
  926. "_key" : "80449",
  927. "_id" : "worldEdges/80449",
  928. "_from" : "worldVertices/country-colombia",
  929. "_to" : "worldVertices/continent-south-america",
  930. "_rev" : "_cuv9de2--A",
  931. "type" : "is-in"
  932. },
  933. {
  934. "_key" : "80451",
  935. "_id" : "worldEdges/80451",
  936. "_from" : "worldVertices/country-cote-d-ivoire",
  937. "_to" : "worldVertices/continent-africa",
  938. "_rev" : "_cuv9de2--B",
  939. "type" : "is-in"
  940. },
  941. {
  942. "_key" : "80453",
  943. "_id" : "worldEdges/80453",
  944. "_from" : "worldVertices/country-croatia",
  945. "_to" : "worldVertices/continent-europe",
  946. "_rev" : "_cuv9de2--C",
  947. "type" : "is-in"
  948. },
  949. {
  950. "_key" : "80455",
  951. "_id" : "worldEdges/80455",
  952. "_from" : "worldVertices/country-czech-republic",
  953. "_to" : "worldVertices/continent-europe",
  954. "_rev" : "_cuv9de6---",
  955. "type" : "is-in"
  956. },
  957. {
  958. "_key" : "80457",
  959. "_id" : "worldEdges/80457",
  960. "_from" : "worldVertices/country-denmark",
  961. "_to" : "worldVertices/continent-europe",
  962. "_rev" : "_cuv9de6--_",
  963. "type" : "is-in"
  964. },
  965. {
  966. "_key" : "80459",
  967. "_id" : "worldEdges/80459",
  968. "_from" : "worldVertices/country-ecuador",
  969. "_to" : "worldVertices/continent-south-america",
  970. "_rev" : "_cuv9de6--A",
  971. "type" : "is-in"
  972. },
  973. {
  974. "_key" : "80461",
  975. "_id" : "worldEdges/80461",
  976. "_from" : "worldVertices/country-egypt",
  977. "_to" : "worldVertices/continent-africa",
  978. "_rev" : "_cuv9df----",
  979. "type" : "is-in"
  980. },
  981. {
  982. "_key" : "80463",
  983. "_id" : "worldEdges/80463",
  984. "_from" : "worldVertices/country-eritrea",
  985. "_to" : "worldVertices/continent-africa",
  986. "_rev" : "_cuv9df---_",
  987. "type" : "is-in"
  988. },
  989. {
  990. "_key" : "80465",
  991. "_id" : "worldEdges/80465",
  992. "_from" : "worldVertices/country-finland",
  993. "_to" : "worldVertices/continent-europe",
  994. "_rev" : "_cuv9df---A",
  995. "type" : "is-in"
  996. },
  997. {
  998. "_key" : "80467",
  999. "_id" : "worldEdges/80467",
  1000. "_from" : "worldVertices/country-france",
  1001. "_to" : "worldVertices/continent-europe",
  1002. "_rev" : "_cuv9dfC---",
  1003. "type" : "is-in"
  1004. },
  1005. {
  1006. "_key" : "80469",
  1007. "_id" : "worldEdges/80469",
  1008. "_from" : "worldVertices/country-germany",
  1009. "_to" : "worldVertices/continent-europe",
  1010. "_rev" : "_cuv9dfC--_",
  1011. "type" : "is-in"
  1012. },
  1013. {
  1014. "_key" : "80471",
  1015. "_id" : "worldEdges/80471",
  1016. "_from" : "worldVertices/country-people-s-republic-of-china",
  1017. "_to" : "worldVertices/continent-asia",
  1018. "_rev" : "_cuv9dfC--A",
  1019. "type" : "is-in"
  1020. },
  1021. {
  1022. "_key" : "80473",
  1023. "_id" : "worldEdges/80473",
  1024. "_from" : "worldVertices/capital-algiers",
  1025. "_to" : "worldVertices/country-algeria",
  1026. "_rev" : "_cuv9dfG---",
  1027. "type" : "is-in"
  1028. },
  1029. {
  1030. "_key" : "80475",
  1031. "_id" : "worldEdges/80475",
  1032. "_from" : "worldVertices/capital-andorra-la-vella",
  1033. "_to" : "worldVertices/country-andorra",
  1034. "_rev" : "_cuv9dfG--_",
  1035. "type" : "is-in"
  1036. },
  1037. {
  1038. "_key" : "80477",
  1039. "_id" : "worldEdges/80477",
  1040. "_from" : "worldVertices/capital-asmara",
  1041. "_to" : "worldVertices/country-eritrea",
  1042. "_rev" : "_cuv9dfG--A",
  1043. "type" : "is-in"
  1044. },
  1045. {
  1046. "_key" : "80479",
  1047. "_id" : "worldEdges/80479",
  1048. "_from" : "worldVertices/capital-bandar-seri-begawan",
  1049. "_to" : "worldVertices/country-brunei",
  1050. "_rev" : "_cuv9dfK---",
  1051. "type" : "is-in"
  1052. },
  1053. {
  1054. "_key" : "80481",
  1055. "_id" : "worldEdges/80481",
  1056. "_from" : "worldVertices/capital-beijing",
  1057. "_to" : "worldVertices/country-people-s-republic-of-china",
  1058. "_rev" : "_cuv9dfK--_",
  1059. "type" : "is-in"
  1060. },
  1061. {
  1062. "_key" : "80483",
  1063. "_id" : "worldEdges/80483",
  1064. "_from" : "worldVertices/capital-berlin",
  1065. "_to" : "worldVertices/country-germany",
  1066. "_rev" : "_cuv9dfK--A",
  1067. "type" : "is-in"
  1068. },
  1069. {
  1070. "_key" : "80485",
  1071. "_id" : "worldEdges/80485",
  1072. "_from" : "worldVertices/capital-bogota",
  1073. "_to" : "worldVertices/country-colombia",
  1074. "_rev" : "_cuv9dfO---",
  1075. "type" : "is-in"
  1076. },
  1077. {
  1078. "_key" : "80487",
  1079. "_id" : "worldEdges/80487",
  1080. "_from" : "worldVertices/capital-brasilia",
  1081. "_to" : "worldVertices/country-brazil",
  1082. "_rev" : "_cuv9dfO--_",
  1083. "type" : "is-in"
  1084. },
  1085. {
  1086. "_key" : "80489",
  1087. "_id" : "worldEdges/80489",
  1088. "_from" : "worldVertices/capital-bridgetown",
  1089. "_to" : "worldVertices/country-barbados",
  1090. "_rev" : "_cuv9dfO--A",
  1091. "type" : "is-in"
  1092. },
  1093. {
  1094. "_key" : "80491",
  1095. "_id" : "worldEdges/80491",
  1096. "_from" : "worldVertices/capital-brussels",
  1097. "_to" : "worldVertices/country-belgium",
  1098. "_rev" : "_cuv9dfS---",
  1099. "type" : "is-in"
  1100. },
  1101. {
  1102. "_key" : "80493",
  1103. "_id" : "worldEdges/80493",
  1104. "_from" : "worldVertices/capital-buenos-aires",
  1105. "_to" : "worldVertices/country-argentina",
  1106. "_rev" : "_cuv9dfS--_",
  1107. "type" : "is-in"
  1108. },
  1109. {
  1110. "_key" : "80495",
  1111. "_id" : "worldEdges/80495",
  1112. "_from" : "worldVertices/capital-bujumbura",
  1113. "_to" : "worldVertices/country-burundi",
  1114. "_rev" : "_cuv9dfS--A",
  1115. "type" : "is-in"
  1116. },
  1117. {
  1118. "_key" : "80497",
  1119. "_id" : "worldEdges/80497",
  1120. "_from" : "worldVertices/capital-cairo",
  1121. "_to" : "worldVertices/country-egypt",
  1122. "_rev" : "_cuv9dfW---",
  1123. "type" : "is-in"
  1124. },
  1125. {
  1126. "_key" : "80499",
  1127. "_id" : "worldEdges/80499",
  1128. "_from" : "worldVertices/capital-canberra",
  1129. "_to" : "worldVertices/country-australia",
  1130. "_rev" : "_cuv9dfW--_",
  1131. "type" : "is-in"
  1132. },
  1133. {
  1134. "_key" : "80501",
  1135. "_id" : "worldEdges/80501",
  1136. "_from" : "worldVertices/capital-copenhagen",
  1137. "_to" : "worldVertices/country-denmark",
  1138. "_rev" : "_cuv9dfW--A",
  1139. "type" : "is-in"
  1140. },
  1141. {
  1142. "_key" : "80503",
  1143. "_id" : "worldEdges/80503",
  1144. "_from" : "worldVertices/capital-dhaka",
  1145. "_to" : "worldVertices/country-bangladesh",
  1146. "_rev" : "_cuv9dfa---",
  1147. "type" : "is-in"
  1148. },
  1149. {
  1150. "_key" : "80505",
  1151. "_id" : "worldEdges/80505",
  1152. "_from" : "worldVertices/capital-gaborone",
  1153. "_to" : "worldVertices/country-botswana",
  1154. "_rev" : "_cuv9dfa--_",
  1155. "type" : "is-in"
  1156. },
  1157. {
  1158. "_key" : "80507",
  1159. "_id" : "worldEdges/80507",
  1160. "_from" : "worldVertices/capital-helsinki",
  1161. "_to" : "worldVertices/country-finland",
  1162. "_rev" : "_cuv9dfa--A",
  1163. "type" : "is-in"
  1164. },
  1165. {
  1166. "_key" : "80509",
  1167. "_id" : "worldEdges/80509",
  1168. "_from" : "worldVertices/capital-kabul",
  1169. "_to" : "worldVertices/country-afghanistan",
  1170. "_rev" : "_cuv9dfe---",
  1171. "type" : "is-in"
  1172. },
  1173. {
  1174. "_key" : "80511",
  1175. "_id" : "worldEdges/80511",
  1176. "_from" : "worldVertices/capital-la-paz",
  1177. "_to" : "worldVertices/country-bolivia",
  1178. "_rev" : "_cuv9dfe--_",
  1179. "type" : "is-in"
  1180. },
  1181. {
  1182. "_key" : "80513",
  1183. "_id" : "worldEdges/80513",
  1184. "_from" : "worldVertices/capital-luanda",
  1185. "_to" : "worldVertices/country-angola",
  1186. "_rev" : "_cuv9dfe--A",
  1187. "type" : "is-in"
  1188. },
  1189. {
  1190. "_key" : "80515",
  1191. "_id" : "worldEdges/80515",
  1192. "_from" : "worldVertices/capital-manama",
  1193. "_to" : "worldVertices/country-bahrain",
  1194. "_rev" : "_cuv9dfi---",
  1195. "type" : "is-in"
  1196. },
  1197. {
  1198. "_key" : "80517",
  1199. "_id" : "worldEdges/80517",
  1200. "_from" : "worldVertices/capital-nassau",
  1201. "_to" : "worldVertices/country-bahamas",
  1202. "_rev" : "_cuv9dfi--_",
  1203. "type" : "is-in"
  1204. },
  1205. {
  1206. "_key" : "80519",
  1207. "_id" : "worldEdges/80519",
  1208. "_from" : "worldVertices/capital-n-djamena",
  1209. "_to" : "worldVertices/country-chad",
  1210. "_rev" : "_cuv9dfi--A",
  1211. "type" : "is-in"
  1212. },
  1213. {
  1214. "_key" : "80521",
  1215. "_id" : "worldEdges/80521",
  1216. "_from" : "worldVertices/capital-ottawa",
  1217. "_to" : "worldVertices/country-canada",
  1218. "_rev" : "_cuv9dfm---",
  1219. "type" : "is-in"
  1220. },
  1221. {
  1222. "_key" : "80523",
  1223. "_id" : "worldEdges/80523",
  1224. "_from" : "worldVertices/capital-ouagadougou",
  1225. "_to" : "worldVertices/country-burkina-faso",
  1226. "_rev" : "_cuv9dfm--_",
  1227. "type" : "is-in"
  1228. },
  1229. {
  1230. "_key" : "80525",
  1231. "_id" : "worldEdges/80525",
  1232. "_from" : "worldVertices/capital-paris",
  1233. "_to" : "worldVertices/country-france",
  1234. "_rev" : "_cuv9dfm--A",
  1235. "type" : "is-in"
  1236. },
  1237. {
  1238. "_key" : "80527",
  1239. "_id" : "worldEdges/80527",
  1240. "_from" : "worldVertices/capital-phnom-penh",
  1241. "_to" : "worldVertices/country-cambodia",
  1242. "_rev" : "_cuv9dfm--B",
  1243. "type" : "is-in"
  1244. },
  1245. {
  1246. "_key" : "80529",
  1247. "_id" : "worldEdges/80529",
  1248. "_from" : "worldVertices/capital-prague",
  1249. "_to" : "worldVertices/country-czech-republic",
  1250. "_rev" : "_cuv9dfq---",
  1251. "type" : "is-in"
  1252. },
  1253. {
  1254. "_key" : "80531",
  1255. "_id" : "worldEdges/80531",
  1256. "_from" : "worldVertices/capital-quito",
  1257. "_to" : "worldVertices/country-ecuador",
  1258. "_rev" : "_cuv9dfq--_",
  1259. "type" : "is-in"
  1260. },
  1261. {
  1262. "_key" : "80533",
  1263. "_id" : "worldEdges/80533",
  1264. "_from" : "worldVertices/capital-saint-john-s",
  1265. "_to" : "worldVertices/country-antigua-and-barbuda",
  1266. "_rev" : "_cuv9dfq--A",
  1267. "type" : "is-in"
  1268. },
  1269. {
  1270. "_key" : "80535",
  1271. "_id" : "worldEdges/80535",
  1272. "_from" : "worldVertices/capital-santiago",
  1273. "_to" : "worldVertices/country-chile",
  1274. "_rev" : "_cuv9dfq--B",
  1275. "type" : "is-in"
  1276. },
  1277. {
  1278. "_key" : "80537",
  1279. "_id" : "worldEdges/80537",
  1280. "_from" : "worldVertices/capital-sarajevo",
  1281. "_to" : "worldVertices/country-bosnia-and-herzegovina",
  1282. "_rev" : "_cuv9dfu---",
  1283. "type" : "is-in"
  1284. },
  1285. {
  1286. "_key" : "80539",
  1287. "_id" : "worldEdges/80539",
  1288. "_from" : "worldVertices/capital-sofia",
  1289. "_to" : "worldVertices/country-bulgaria",
  1290. "_rev" : "_cuv9dfu--_",
  1291. "type" : "is-in"
  1292. },
  1293. {
  1294. "_key" : "80541",
  1295. "_id" : "worldEdges/80541",
  1296. "_from" : "worldVertices/capital-thimphu",
  1297. "_to" : "worldVertices/country-bhutan",
  1298. "_rev" : "_cuv9dfu--A",
  1299. "type" : "is-in"
  1300. },
  1301. {
  1302. "_key" : "80543",
  1303. "_id" : "worldEdges/80543",
  1304. "_from" : "worldVertices/capital-tirana",
  1305. "_to" : "worldVertices/country-albania",
  1306. "_rev" : "_cuv9dfy---",
  1307. "type" : "is-in"
  1308. },
  1309. {
  1310. "_key" : "80545",
  1311. "_id" : "worldEdges/80545",
  1312. "_from" : "worldVertices/capital-vienna",
  1313. "_to" : "worldVertices/country-austria",
  1314. "_rev" : "_cuv9dfy--_",
  1315. "type" : "is-in"
  1316. },
  1317. {
  1318. "_key" : "80547",
  1319. "_id" : "worldEdges/80547",
  1320. "_from" : "worldVertices/capital-yamoussoukro",
  1321. "_to" : "worldVertices/country-cote-d-ivoire",
  1322. "_rev" : "_cuv9df2---",
  1323. "type" : "is-in"
  1324. },
  1325. {
  1326. "_key" : "80549",
  1327. "_id" : "worldEdges/80549",
  1328. "_from" : "worldVertices/capital-yaounde",
  1329. "_to" : "worldVertices/country-cameroon",
  1330. "_rev" : "_cuv9df2--_",
  1331. "type" : "is-in"
  1332. },
  1333. {
  1334. "_key" : "80551",
  1335. "_id" : "worldEdges/80551",
  1336. "_from" : "worldVertices/capital-zagreb",
  1337. "_to" : "worldVertices/country-croatia",
  1338. "_rev" : "_cuv9df2--A",
  1339. "type" : "is-in"
  1340. }
  1341. ]

The Mps Graph

This graph was created to demonstrate a use case of the shortest path algorithm. Even though the algorithm can only determine one shortest path, it is possible to return multiple shortest paths with two separate queries. Therefore the graph is named after the multiple path search use case.

Mps Graph

The example graph consists of vertices in the mps_verts collection and edges in the mps_edges collection. It is a simple traversal graph with start node A and end node C.

This is how we create it, inspect its vertices and edges, and drop it again:

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("mps_graph");
  3. arangosh> db.mps_verts.toArray();
  4. arangosh> db.mps_edges.toArray();
  5. arangosh> examples.dropGraph("mps_graph");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "A",
  4. "_id" : "mps_verts/A",
  5. "_rev" : "_cuv9dZW---"
  6. },
  7. {
  8. "_key" : "B",
  9. "_id" : "mps_verts/B",
  10. "_rev" : "_cuv9dZW--_"
  11. },
  12. {
  13. "_key" : "C",
  14. "_id" : "mps_verts/C",
  15. "_rev" : "_cuv9dZW--A"
  16. },
  17. {
  18. "_key" : "D",
  19. "_id" : "mps_verts/D",
  20. "_rev" : "_cuv9dZa---"
  21. },
  22. {
  23. "_key" : "E",
  24. "_id" : "mps_verts/E",
  25. "_rev" : "_cuv9dZa--_"
  26. },
  27. {
  28. "_key" : "F",
  29. "_id" : "mps_verts/F",
  30. "_rev" : "_cuv9dZa--A"
  31. }
  32. ]
  33. [
  34. {
  35. "_key" : "80101",
  36. "_id" : "mps_edges/80101",
  37. "_from" : "mps_verts/A",
  38. "_to" : "mps_verts/B",
  39. "_rev" : "_cuv9dZa--B",
  40. "vertex" : "A"
  41. },
  42. {
  43. "_key" : "80103",
  44. "_id" : "mps_edges/80103",
  45. "_from" : "mps_verts/A",
  46. "_to" : "mps_verts/E",
  47. "_rev" : "_cuv9dZe---",
  48. "vertex" : "A"
  49. },
  50. {
  51. "_key" : "80105",
  52. "_id" : "mps_edges/80105",
  53. "_from" : "mps_verts/A",
  54. "_to" : "mps_verts/D",
  55. "_rev" : "_cuv9dZe--_",
  56. "vertex" : "A"
  57. },
  58. {
  59. "_key" : "80107",
  60. "_id" : "mps_edges/80107",
  61. "_from" : "mps_verts/B",
  62. "_to" : "mps_verts/C",
  63. "_rev" : "_cuv9dZi---",
  64. "vertex" : "B"
  65. },
  66. {
  67. "_key" : "80109",
  68. "_id" : "mps_edges/80109",
  69. "_from" : "mps_verts/D",
  70. "_to" : "mps_verts/C",
  71. "_rev" : "_cuv9dZi--_",
  72. "vertex" : "D"
  73. },
  74. {
  75. "_key" : "80111",
  76. "_id" : "mps_edges/80111",
  77. "_from" : "mps_verts/E",
  78. "_to" : "mps_verts/F",
  79. "_rev" : "_cuv9dZi--A",
  80. "vertex" : "E"
  81. },
  82. {
  83. "_key" : "80113",
  84. "_id" : "mps_edges/80113",
  85. "_from" : "mps_verts/F",
  86. "_to" : "mps_verts/C",
  87. "_rev" : "_cuv9dZi--B",
  88. "vertex" : "F"
  89. }
  90. ]

The Connected Components Graph

A small example graph comprised of components (vertices) and connections (edges). Good for trying out Pregel algorithms such as Weakly Connected Components (WCC).

Also see:

Three disjoint subgraphs with 36 nodes and edges in total

  1. arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
  2. arangosh> var g = examples.loadGraph("connectedComponentsGraph");
  3. arangosh> db.components.toArray();
  4. arangosh> db.connections.toArray();
  5. arangosh> examples.dropGraph("connectedComponentsGraph");

Show execution results

Hide execution results

  1. [
  2. {
  3. "_key" : "A1",
  4. "_id" : "components/A1",
  5. "_rev" : "_cuv9dRu---"
  6. },
  7. {
  8. "_key" : "A2",
  9. "_id" : "components/A2",
  10. "_rev" : "_cuv9dRy---"
  11. },
  12. {
  13. "_key" : "A3",
  14. "_id" : "components/A3",
  15. "_rev" : "_cuv9dRy--_"
  16. },
  17. {
  18. "_key" : "A4",
  19. "_id" : "components/A4",
  20. "_rev" : "_cuv9dR2---"
  21. },
  22. {
  23. "_key" : "B1",
  24. "_id" : "components/B1",
  25. "_rev" : "_cuv9dR2--_"
  26. },
  27. {
  28. "_key" : "B3",
  29. "_id" : "components/B3",
  30. "_rev" : "_cuv9dR2--A"
  31. },
  32. {
  33. "_key" : "B2",
  34. "_id" : "components/B2",
  35. "_rev" : "_cuv9dR6---"
  36. },
  37. {
  38. "_key" : "B4",
  39. "_id" : "components/B4",
  40. "_rev" : "_cuv9dR6--_"
  41. },
  42. {
  43. "_key" : "B6",
  44. "_id" : "components/B6",
  45. "_rev" : "_cuv9dS----"
  46. },
  47. {
  48. "_key" : "B5",
  49. "_id" : "components/B5",
  50. "_rev" : "_cuv9dS---_"
  51. },
  52. {
  53. "_key" : "B7",
  54. "_id" : "components/B7",
  55. "_rev" : "_cuv9dS---A"
  56. },
  57. {
  58. "_key" : "B8",
  59. "_id" : "components/B8",
  60. "_rev" : "_cuv9dS---B"
  61. },
  62. {
  63. "_key" : "B9",
  64. "_id" : "components/B9",
  65. "_rev" : "_cuv9dSC---"
  66. },
  67. {
  68. "_key" : "B10",
  69. "_id" : "components/B10",
  70. "_rev" : "_cuv9dSC--_"
  71. },
  72. {
  73. "_key" : "B19",
  74. "_id" : "components/B19",
  75. "_rev" : "_cuv9dSG---"
  76. },
  77. {
  78. "_key" : "B11",
  79. "_id" : "components/B11",
  80. "_rev" : "_cuv9dSG--_"
  81. },
  82. {
  83. "_key" : "B12",
  84. "_id" : "components/B12",
  85. "_rev" : "_cuv9dSG--A"
  86. },
  87. {
  88. "_key" : "B13",
  89. "_id" : "components/B13",
  90. "_rev" : "_cuv9dSG--B"
  91. },
  92. {
  93. "_key" : "B20",
  94. "_id" : "components/B20",
  95. "_rev" : "_cuv9dSK---"
  96. },
  97. {
  98. "_key" : "B14",
  99. "_id" : "components/B14",
  100. "_rev" : "_cuv9dSK--_"
  101. },
  102. {
  103. "_key" : "B15",
  104. "_id" : "components/B15",
  105. "_rev" : "_cuv9dSK--A"
  106. },
  107. {
  108. "_key" : "B16",
  109. "_id" : "components/B16",
  110. "_rev" : "_cuv9dSO---"
  111. },
  112. {
  113. "_key" : "B17",
  114. "_id" : "components/B17",
  115. "_rev" : "_cuv9dSO--_"
  116. },
  117. {
  118. "_key" : "B18",
  119. "_id" : "components/B18",
  120. "_rev" : "_cuv9dSO--A"
  121. },
  122. {
  123. "_key" : "B21",
  124. "_id" : "components/B21",
  125. "_rev" : "_cuv9dSS---"
  126. },
  127. {
  128. "_key" : "B22",
  129. "_id" : "components/B22",
  130. "_rev" : "_cuv9dSS--_"
  131. },
  132. {
  133. "_key" : "C1",
  134. "_id" : "components/C1",
  135. "_rev" : "_cuv9dSS--A"
  136. },
  137. {
  138. "_key" : "C2",
  139. "_id" : "components/C2",
  140. "_rev" : "_cuv9dSW---"
  141. },
  142. {
  143. "_key" : "C3",
  144. "_id" : "components/C3",
  145. "_rev" : "_cuv9dSW--_"
  146. },
  147. {
  148. "_key" : "C4",
  149. "_id" : "components/C4",
  150. "_rev" : "_cuv9dSW--A"
  151. },
  152. {
  153. "_key" : "C5",
  154. "_id" : "components/C5",
  155. "_rev" : "_cuv9dSa---"
  156. },
  157. {
  158. "_key" : "C7",
  159. "_id" : "components/C7",
  160. "_rev" : "_cuv9dSa--_"
  161. },
  162. {
  163. "_key" : "C6",
  164. "_id" : "components/C6",
  165. "_rev" : "_cuv9dSe---"
  166. },
  167. {
  168. "_key" : "C8",
  169. "_id" : "components/C8",
  170. "_rev" : "_cuv9dSe--_"
  171. },
  172. {
  173. "_key" : "C9",
  174. "_id" : "components/C9",
  175. "_rev" : "_cuv9dSi---"
  176. },
  177. {
  178. "_key" : "C10",
  179. "_id" : "components/C10",
  180. "_rev" : "_cuv9dSi--_"
  181. }
  182. ]
  183. [
  184. {
  185. "_key" : "79798",
  186. "_id" : "connections/79798",
  187. "_from" : "components/A1",
  188. "_to" : "components/A2",
  189. "_rev" : "_cuv9dSi--A"
  190. },
  191. {
  192. "_key" : "79800",
  193. "_id" : "connections/79800",
  194. "_from" : "components/A2",
  195. "_to" : "components/A3",
  196. "_rev" : "_cuv9dSm---"
  197. },
  198. {
  199. "_key" : "79802",
  200. "_id" : "connections/79802",
  201. "_from" : "components/A3",
  202. "_to" : "components/A4",
  203. "_rev" : "_cuv9dSm--_"
  204. },
  205. {
  206. "_key" : "79804",
  207. "_id" : "connections/79804",
  208. "_from" : "components/A4",
  209. "_to" : "components/A1",
  210. "_rev" : "_cuv9dSq---"
  211. },
  212. {
  213. "_key" : "79806",
  214. "_id" : "connections/79806",
  215. "_from" : "components/B1",
  216. "_to" : "components/B3",
  217. "_rev" : "_cuv9dSq--_"
  218. },
  219. {
  220. "_key" : "79808",
  221. "_id" : "connections/79808",
  222. "_from" : "components/B2",
  223. "_to" : "components/B4",
  224. "_rev" : "_cuv9dSu---"
  225. },
  226. {
  227. "_key" : "79810",
  228. "_id" : "connections/79810",
  229. "_from" : "components/B3",
  230. "_to" : "components/B6",
  231. "_rev" : "_cuv9dSu--_"
  232. },
  233. {
  234. "_key" : "79812",
  235. "_id" : "connections/79812",
  236. "_from" : "components/B4",
  237. "_to" : "components/B3",
  238. "_rev" : "_cuv9dSy---"
  239. },
  240. {
  241. "_key" : "79814",
  242. "_id" : "connections/79814",
  243. "_from" : "components/B4",
  244. "_to" : "components/B5",
  245. "_rev" : "_cuv9dSy--_"
  246. },
  247. {
  248. "_key" : "79816",
  249. "_id" : "connections/79816",
  250. "_from" : "components/B6",
  251. "_to" : "components/B7",
  252. "_rev" : "_cuv9dS2---"
  253. },
  254. {
  255. "_key" : "79818",
  256. "_id" : "connections/79818",
  257. "_from" : "components/B7",
  258. "_to" : "components/B8",
  259. "_rev" : "_cuv9dS2--_"
  260. },
  261. {
  262. "_key" : "79820",
  263. "_id" : "connections/79820",
  264. "_from" : "components/B7",
  265. "_to" : "components/B9",
  266. "_rev" : "_cuv9dS2--A"
  267. },
  268. {
  269. "_key" : "79822",
  270. "_id" : "connections/79822",
  271. "_from" : "components/B7",
  272. "_to" : "components/B10",
  273. "_rev" : "_cuv9dS6---"
  274. },
  275. {
  276. "_key" : "79824",
  277. "_id" : "connections/79824",
  278. "_from" : "components/B7",
  279. "_to" : "components/B19",
  280. "_rev" : "_cuv9dS6--_"
  281. },
  282. {
  283. "_key" : "79826",
  284. "_id" : "connections/79826",
  285. "_from" : "components/B11",
  286. "_to" : "components/B10",
  287. "_rev" : "_cuv9dT----"
  288. },
  289. {
  290. "_key" : "79828",
  291. "_id" : "connections/79828",
  292. "_from" : "components/B12",
  293. "_to" : "components/B11",
  294. "_rev" : "_cuv9dT---_"
  295. },
  296. {
  297. "_key" : "79830",
  298. "_id" : "connections/79830",
  299. "_from" : "components/B13",
  300. "_to" : "components/B12",
  301. "_rev" : "_cuv9dT---A"
  302. },
  303. {
  304. "_key" : "79832",
  305. "_id" : "connections/79832",
  306. "_from" : "components/B13",
  307. "_to" : "components/B20",
  308. "_rev" : "_cuv9dTC---"
  309. },
  310. {
  311. "_key" : "79834",
  312. "_id" : "connections/79834",
  313. "_from" : "components/B14",
  314. "_to" : "components/B13",
  315. "_rev" : "_cuv9dTC--_"
  316. },
  317. {
  318. "_key" : "79836",
  319. "_id" : "connections/79836",
  320. "_from" : "components/B15",
  321. "_to" : "components/B14",
  322. "_rev" : "_cuv9dTG---"
  323. },
  324. {
  325. "_key" : "79838",
  326. "_id" : "connections/79838",
  327. "_from" : "components/B15",
  328. "_to" : "components/B16",
  329. "_rev" : "_cuv9dTG--_"
  330. },
  331. {
  332. "_key" : "79840",
  333. "_id" : "connections/79840",
  334. "_from" : "components/B17",
  335. "_to" : "components/B15",
  336. "_rev" : "_cuv9dTG--A"
  337. },
  338. {
  339. "_key" : "79842",
  340. "_id" : "connections/79842",
  341. "_from" : "components/B17",
  342. "_to" : "components/B18",
  343. "_rev" : "_cuv9dTK---"
  344. },
  345. {
  346. "_key" : "79844",
  347. "_id" : "connections/79844",
  348. "_from" : "components/B19",
  349. "_to" : "components/B17",
  350. "_rev" : "_cuv9dTK--_"
  351. },
  352. {
  353. "_key" : "79846",
  354. "_id" : "connections/79846",
  355. "_from" : "components/B20",
  356. "_to" : "components/B21",
  357. "_rev" : "_cuv9dTK--A"
  358. },
  359. {
  360. "_key" : "79848",
  361. "_id" : "connections/79848",
  362. "_from" : "components/B20",
  363. "_to" : "components/B22",
  364. "_rev" : "_cuv9dTK--B"
  365. },
  366. {
  367. "_key" : "79850",
  368. "_id" : "connections/79850",
  369. "_from" : "components/C1",
  370. "_to" : "components/C2",
  371. "_rev" : "_cuv9dTO---"
  372. },
  373. {
  374. "_key" : "79852",
  375. "_id" : "connections/79852",
  376. "_from" : "components/C2",
  377. "_to" : "components/C3",
  378. "_rev" : "_cuv9dTO--_"
  379. },
  380. {
  381. "_key" : "79854",
  382. "_id" : "connections/79854",
  383. "_from" : "components/C3",
  384. "_to" : "components/C4",
  385. "_rev" : "_cuv9dTO--A"
  386. },
  387. {
  388. "_key" : "79856",
  389. "_id" : "connections/79856",
  390. "_from" : "components/C4",
  391. "_to" : "components/C5",
  392. "_rev" : "_cuv9dTO--B"
  393. },
  394. {
  395. "_key" : "79858",
  396. "_id" : "connections/79858",
  397. "_from" : "components/C4",
  398. "_to" : "components/C7",
  399. "_rev" : "_cuv9dTO--C"
  400. },
  401. {
  402. "_key" : "79860",
  403. "_id" : "connections/79860",
  404. "_from" : "components/C5",
  405. "_to" : "components/C6",
  406. "_rev" : "_cuv9dTS---"
  407. },
  408. {
  409. "_key" : "79862",
  410. "_id" : "connections/79862",
  411. "_from" : "components/C5",
  412. "_to" : "components/C7",
  413. "_rev" : "_cuv9dTS--_"
  414. },
  415. {
  416. "_key" : "79864",
  417. "_id" : "connections/79864",
  418. "_from" : "components/C7",
  419. "_to" : "components/C8",
  420. "_rev" : "_cuv9dTS--A"
  421. },
  422. {
  423. "_key" : "79866",
  424. "_id" : "connections/79866",
  425. "_from" : "components/C8",
  426. "_to" : "components/C9",
  427. "_rev" : "_cuv9dTS--B"
  428. },
  429. {
  430. "_key" : "79868",
  431. "_id" : "connections/79868",
  432. "_from" : "components/C8",
  433. "_to" : "components/C10",
  434. "_rev" : "_cuv9dTW---"
  435. }
  436. ]

Higher volume graph examples

All of the above examples are rather small so they are easier to comprehend and can demonstrate the way the functionality works. There are however several datasets freely available on the web that are a lot bigger. We collected some of them with import scripts so you may play around with them. Another huge graph is the Pokec social network from Slovakia that we used for performance testing on several databases; You will find importing scripts etc. in this blogpost.

More examples