ArangoDB Graphs

    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 . They use the full spectrum of ArangoDB’s graph features. You may access them via several interfaces.

    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.

    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 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.

    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:

    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.

    For sure you want to have backups of your graph data, you can use 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 .

    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 - 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" : "_dAzP3wC---",
    6. "name" : "Alice"
    7. },
    8. {
    9. "_key" : "bob",
    10. "_id" : "persons/bob",
    11. "_rev" : "_dAzP3wG---",
    12. "name" : "Bob"
    13. },
    14. {
    15. "_key" : "charlie",
    16. "_id" : "persons/charlie",
    17. "_rev" : "_dAzP3wG--A",
    18. "name" : "Charlie"
    19. },
    20. {
    21. "_key" : "dave",
    22. "_id" : "persons/dave",
    23. "_rev" : "_dAzP3wK---",
    24. "name" : "Dave"
    25. },
    26. {
    27. "_key" : "eve",
    28. "_id" : "persons/eve",
    29. "_rev" : "_dAzP3wK--A",
    30. "name" : "Eve"
    31. }
    32. ]
    33. [
    34. {
    35. "_key" : "90745",
    36. "_id" : "knows/90745",
    37. "_from" : "persons/alice",
    38. "_to" : "persons/bob",
    39. "_rev" : "_dAzP3wO---",
    40. "vertex" : "alice"
    41. },
    42. {
    43. "_key" : "90747",
    44. "_id" : "knows/90747",
    45. "_from" : "persons/bob",
    46. "_to" : "persons/charlie",
    47. "_rev" : "_dAzP3wO--A",
    48. "vertex" : "bob"
    49. },
    50. {
    51. "_key" : "90749",
    52. "_id" : "knows/90749",
    53. "_from" : "persons/bob",
    54. "_to" : "persons/dave",
    55. "_rev" : "_dAzP3wO--C",
    56. "vertex" : "bob"
    57. },
    58. {
    59. "_key" : "90751",
    60. "_id" : "knows/90751",
    61. "_from" : "persons/eve",
    62. "_to" : "persons/alice",
    63. "_rev" : "_dAzP3wS---",
    64. "vertex" : "eve"
    65. },
    66. {
    67. "_key" : "90753",
    68. "_id" : "knows/90753",
    69. "_from" : "persons/eve",
    70. "_to" : "persons/bob",
    71. "_rev" : "_dAzP3wS--A",
    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:

    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" : "_dAzP30a---",
    6. "name" : "Alice"
    7. },
    8. {
    9. "_key" : "diana",
    10. "_id" : "female/diana",
    11. "_rev" : "_dAzP30e--A",
    12. "name" : "Diana"
    13. }
    14. ]
    15. [
    16. {
    17. "_key" : "bob",
    18. "_id" : "male/bob",
    19. "_rev" : "_dAzP30a--A",
    20. "name" : "Bob"
    21. },
    22. {
    23. "_key" : "charly",
    24. "_id" : "male/charly",
    25. "_rev" : "_dAzP30e---",
    26. "name" : "Charly"
    27. }
    28. ]
    29. [
    30. {
    31. "_key" : "90997",
    32. "_id" : "relation/90997",
    33. "_from" : "female/alice",
    34. "_to" : "male/bob",
    35. "_rev" : "_dAzP30e--C",
    36. "type" : "married",
    37. "vertex" : "alice"
    38. },
    39. {
    40. "_key" : "90999",
    41. "_id" : "relation/90999",
    42. "_from" : "female/alice",
    43. "_to" : "male/charly",
    44. "_rev" : "_dAzP30e--E",
    45. "type" : "friend",
    46. "vertex" : "alice"
    47. },
    48. {
    49. "_key" : "91001",
    50. "_id" : "relation/91001",
    51. "_from" : "male/charly",
    52. "_to" : "female/diana",
    53. "_rev" : "_dAzP30i---",
    54. "type" : "married",
    55. "vertex" : "charly"
    56. },
    57. {
    58. "_key" : "91003",
    59. "_id" : "relation/91003",
    60. "_from" : "male/bob",
    61. "_to" : "female/diana",
    62. "_rev" : "_dAzP30i--A",
    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:

    Show execution results

    1. [
    2. {
    3. "_key" : "Lyon",
    4. "_id" : "frenchCity/Lyon",
    5. "_rev" : "_dAzP3ue--A",
    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" : "_dAzP3ue--C",
    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" : "_dAzP3ua---",
    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" : "_dAzP3ua--A",
    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" : "_dAzP3ue---",
    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" : "90656",
    78. "_id" : "germanHighway/90656",
    79. "_from" : "germanCity/Berlin",
    80. "_to" : "germanCity/Cologne",
    81. "_rev" : "_dAzP3uq---",
    82. "distance" : 850
    83. },
    84. {
    85. "_key" : "90658",
    86. "_id" : "germanHighway/90658",
    87. "_from" : "germanCity/Berlin",
    88. "_to" : "germanCity/Hamburg",
    89. "_rev" : "_dAzP3uu---",
    90. "distance" : 400
    91. },
    92. {
    93. "_key" : "90660",
    94. "_id" : "germanHighway/90660",
    95. "_from" : "germanCity/Hamburg",
    96. "_to" : "germanCity/Cologne",
    97. "_rev" : "_dAzP3uu--A",
    98. "distance" : 500
    99. }
    100. ]
    101. [
    102. {
    103. "_key" : "90662",
    104. "_id" : "frenchHighway/90662",
    105. "_from" : "frenchCity/Paris",
    106. "_to" : "frenchCity/Lyon",
    107. "_rev" : "_dAzP3uu--C",
    108. "distance" : 550
    109. }
    110. ]
    111. [
    112. {
    113. "_key" : "90664",
    114. "_id" : "internationalHighway/90664",
    115. "_from" : "germanCity/Berlin",
    116. "_to" : "frenchCity/Lyon",
    117. "_rev" : "_dAzP3uy---",
    118. "distance" : 1100
    119. },
    120. {
    121. "_key" : "90666",
    122. "_id" : "internationalHighway/90666",
    123. "_from" : "germanCity/Berlin",
    124. "_to" : "frenchCity/Paris",
    125. "_rev" : "_dAzP3uy--A",
    126. "distance" : 1200
    127. },
    128. {
    129. "_key" : "90668",
    130. "_id" : "internationalHighway/90668",
    131. "_from" : "germanCity/Hamburg",
    132. "_to" : "frenchCity/Paris",
    133. "_rev" : "_dAzP3u2---",
    134. "distance" : 900
    135. },
    136. {
    137. "_key" : "90670",
    138. "_id" : "internationalHighway/90670",
    139. "_from" : "germanCity/Hamburg",
    140. "_to" : "frenchCity/Lyon",
    141. "_rev" : "_dAzP3u2--A",
    142. "distance" : 1300
    143. },
    144. {
    145. "_key" : "90672",
    146. "_id" : "internationalHighway/90672",
    147. "_from" : "germanCity/Cologne",
    148. "_to" : "frenchCity/Lyon",
    149. "_rev" : "_dAzP3u2--C",
    150. "distance" : 700
    151. },
    152. {
    153. "_key" : "90674",
    154. "_id" : "internationalHighway/90674",
    155. "_from" : "germanCity/Cologne",
    156. "_to" : "frenchCity/Paris",
    157. "_rev" : "_dAzP3u6---",
    158. "distance" : 550
    159. }
    160. ]

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

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

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

    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

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

    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. so you may play around with them. Another huge graph is the Pokec social network from Slovakia that we ; You will find importing scripts etc. in this blogpost.