Example graphs
How to use the example graphs built into ArangoDB
ArangoDB comes with a set of easy-to-understand graphs for demonstration purposes.
In the web interface, navigate to the GRAPHS section, click the Add Graph card, go to the Examples tab, and click the Create button of one of the listed graphs.
In arangosh, run
require("@arangodb/graph-examples/example-graph").loadGraph("<name>");
with<name>
substituted by the name of an example graph listed below.
You can visually explore the created graphs in the Graph viewer of the web interface.
You can take a look at the script that creates the example graphs on GitHub for reference about how to manage graphs programmatically.
Knows Graph
The knows
graph is a set of persons knowing each other:
The graph consists of a persons
vertex collection connected via a knows
edge collection.
There are five persons, Alice, Bob, Charlie, Dave, and Eve.
They have the following directed relations:
- Alice knows Bob
- Bob knows Charlie
- Bob knows Dave
- Eve knows Alice
- Eve knows Bob
Example of how to create the graph, inspect its vertices and edges, and delete it again:
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("knows_graph");
db.persons.toArray()
db.knows.toArray();
examples.dropGraph("knows_graph");
[
{
"_key" : "alice",
"_id" : "persons/alice",
"_rev" : "_iXQt2sq---",
"name" : "Alice"
},
{
"_key" : "bob",
"_id" : "persons/bob",
"_rev" : "_iXQt2sq--_",
"name" : "Bob"
},
{
"_key" : "charlie",
"_id" : "persons/charlie",
"_rev" : "_iXQt2sq--A",
"name" : "Charlie"
},
{
"_key" : "dave",
"_id" : "persons/dave",
"_rev" : "_iXQt2sq--B",
"name" : "Dave"
},
{
"_key" : "eve",
"_id" : "persons/eve",
"_rev" : "_iXQt2su---",
"name" : "Eve"
}
]
[
{
"_key" : "73393",
"_id" : "knows/73393",
"_from" : "persons/alice",
"_to" : "persons/bob",
"_rev" : "_iXQt2su--_",
"vertex" : "alice"
},
{
"_key" : "73395",
"_id" : "knows/73395",
"_from" : "persons/bob",
"_to" : "persons/charlie",
"_rev" : "_iXQt2su--A",
"vertex" : "bob"
},
{
"_key" : "73397",
"_id" : "knows/73397",
"_from" : "persons/bob",
"_to" : "persons/dave",
"_rev" : "_iXQt2su--B",
"vertex" : "bob"
},
{
"_key" : "73399",
"_id" : "knows/73399",
"_from" : "persons/eve",
"_to" : "persons/alice",
"_rev" : "_iXQt2sy---",
"vertex" : "eve"
},
{
"_key" : "73401",
"_id" : "knows/73401",
"_from" : "persons/eve",
"_to" : "persons/bob",
"_rev" : "_iXQt2sy--_",
"vertex" : "eve"
}
]
Note: With the default traversal depth of 2 of the graph viewer, you may not see all edges of this graph by default.
Traversal Graph
The traversalGraph
has been designed to demonstrate filters in traversals.
It has some labels to filter on it. The graph’s vertices are in a collection
called circles
, and it has an edge collection edges
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
neighbors of the root-node A. Starting from A, the graph has a depth of 3 on
all its paths.
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("traversalGraph");
db.circles.toArray();
db.edges.toArray();
examples.dropGraph("traversalGraph");
[
{
"_key" : "A",
"_id" : "circles/A",
"_rev" : "_iXQt2ti---",
"label" : "1"
},
{
"_key" : "B",
"_id" : "circles/B",
"_rev" : "_iXQt2ti--_",
"label" : "2"
},
{
"_key" : "C",
"_id" : "circles/C",
"_rev" : "_iXQt2ti--A",
"label" : "3"
},
{
"_key" : "D",
"_id" : "circles/D",
"_rev" : "_iXQt2ti--B",
"label" : "4"
},
{
"_key" : "E",
"_id" : "circles/E",
"_rev" : "_iXQt2ti--C",
"label" : "5"
},
{
"_key" : "F",
"_id" : "circles/F",
"_rev" : "_iXQt2tm---",
"label" : "6"
},
{
"_key" : "G",
"_id" : "circles/G",
"_rev" : "_iXQt2tm--_",
"label" : "7"
},
{
"_key" : "H",
"_id" : "circles/H",
"_rev" : "_iXQt2tm--A",
"label" : "8"
},
{
"_key" : "I",
"_id" : "circles/I",
"_rev" : "_iXQt2tm--B",
"label" : "9"
},
{
"_key" : "J",
"_id" : "circles/J",
"_rev" : "_iXQt2tm--C",
"label" : "10"
},
{
"_key" : "K",
"_id" : "circles/K",
"_rev" : "_iXQt2tq---",
"label" : "11"
}
]
[
{
"_key" : "73459",
"_id" : "edges/73459",
"_from" : "circles/A",
"_to" : "circles/B",
"_rev" : "_iXQt2tq--_",
"theFalse" : false,
"theTruth" : true,
"label" : "left_bar"
},
{
"_key" : "73461",
"_id" : "edges/73461",
"_from" : "circles/B",
"_to" : "circles/C",
"_rev" : "_iXQt2tq--A",
"theFalse" : false,
"theTruth" : true,
"label" : "left_blarg"
},
{
"_key" : "73463",
"_id" : "edges/73463",
"_from" : "circles/C",
"_to" : "circles/D",
"_rev" : "_iXQt2tq--B",
"theFalse" : false,
"theTruth" : true,
"label" : "left_blorg"
},
{
"_key" : "73465",
"_id" : "edges/73465",
"_from" : "circles/B",
"_to" : "circles/E",
"_rev" : "_iXQt2tu---",
"theFalse" : false,
"theTruth" : true,
"label" : "left_blub"
},
{
"_key" : "73467",
"_id" : "edges/73467",
"_from" : "circles/E",
"_to" : "circles/F",
"_rev" : "_iXQt2tu--_",
"theFalse" : false,
"theTruth" : true,
"label" : "left_schubi"
},
{
"_key" : "73469",
"_id" : "edges/73469",
"_from" : "circles/A",
"_to" : "circles/G",
"_rev" : "_iXQt2tu--A",
"theFalse" : false,
"theTruth" : true,
"label" : "right_foo"
},
{
"_key" : "73471",
"_id" : "edges/73471",
"_from" : "circles/G",
"_to" : "circles/H",
"_rev" : "_iXQt2tu--B",
"theFalse" : false,
"theTruth" : true,
"label" : "right_blob"
},
{
"_key" : "73473",
"_id" : "edges/73473",
"_from" : "circles/H",
"_to" : "circles/I",
"_rev" : "_iXQt2ty---",
"theFalse" : false,
"theTruth" : true,
"label" : "right_blub"
},
{
"_key" : "73475",
"_id" : "edges/73475",
"_from" : "circles/G",
"_to" : "circles/J",
"_rev" : "_iXQt2ty--_",
"theFalse" : false,
"theTruth" : true,
"label" : "right_zip"
},
{
"_key" : "73477",
"_id" : "edges/73477",
"_from" : "circles/J",
"_to" : "circles/K",
"_rev" : "_iXQt2ty--A",
"theFalse" : false,
"theTruth" : true,
"label" : "right_zup"
}
]
Note: With the default traversal depth of 2 of the graph viewer, you may not see all edges of this graph by default.
k Shortest Paths Graph
The vertices in the kShortestPathsGraph
graph are train stations of cities in
Europe and North America. The edges represent train connections between them,
with the travel time for both directions as edge weight.
See the k Shortest Paths page for query examples.
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("kShortestPathsGraph");
db.places.toArray();
db.connections.toArray();
examples.dropGraph("kShortestPathsGraph");
[
{
"_key" : "Inverness",
"_id" : "places/Inverness",
"_rev" : "_iXQt2v2---",
"label" : "Inverness"
},
{
"_key" : "Aberdeen",
"_id" : "places/Aberdeen",
"_rev" : "_iXQt2v6---",
"label" : "Aberdeen"
},
{
"_key" : "Leuchars",
"_id" : "places/Leuchars",
"_rev" : "_iXQt2v6--_",
"label" : "Leuchars"
},
{
"_key" : "StAndrews",
"_id" : "places/StAndrews",
"_rev" : "_iXQt2v6--A",
"label" : "StAndrews"
},
{
"_key" : "Edinburgh",
"_id" : "places/Edinburgh",
"_rev" : "_iXQt2v6--B",
"label" : "Edinburgh"
},
{
"_key" : "Glasgow",
"_id" : "places/Glasgow",
"_rev" : "_iXQt2w----",
"label" : "Glasgow"
},
{
"_key" : "York",
"_id" : "places/York",
"_rev" : "_iXQt2w---_",
"label" : "York"
},
{
"_key" : "Carlisle",
"_id" : "places/Carlisle",
"_rev" : "_iXQt2w---A",
"label" : "Carlisle"
},
{
"_key" : "Birmingham",
"_id" : "places/Birmingham",
"_rev" : "_iXQt2w---B",
"label" : "Birmingham"
},
{
"_key" : "London",
"_id" : "places/London",
"_rev" : "_iXQt2w---C",
"label" : "London"
},
{
"_key" : "Brussels",
"_id" : "places/Brussels",
"_rev" : "_iXQt2wC---",
"label" : "Brussels"
},
{
"_key" : "Cologne",
"_id" : "places/Cologne",
"_rev" : "_iXQt2wC--_",
"label" : "Cologne"
},
{
"_key" : "Toronto",
"_id" : "places/Toronto",
"_rev" : "_iXQt2wC--A",
"label" : "Toronto"
},
{
"_key" : "Winnipeg",
"_id" : "places/Winnipeg",
"_rev" : "_iXQt2wC--B",
"label" : "Winnipeg"
},
{
"_key" : "Saskatoon",
"_id" : "places/Saskatoon",
"_rev" : "_iXQt2wC--C",
"label" : "Saskatoon"
},
{
"_key" : "Edmonton",
"_id" : "places/Edmonton",
"_rev" : "_iXQt2wC--D",
"label" : "Edmonton"
},
{
"_key" : "Jasper",
"_id" : "places/Jasper",
"_rev" : "_iXQt2wG---",
"label" : "Jasper"
},
{
"_key" : "Vancouver",
"_id" : "places/Vancouver",
"_rev" : "_iXQt2wG--_",
"label" : "Vancouver"
}
]
[
{
"_key" : "73542",
"_id" : "connections/73542",
"_from" : "places/Inverness",
"_to" : "places/Aberdeen",
"_rev" : "_iXQt2wG--A",
"travelTime" : 3
},
{
"_key" : "73544",
"_id" : "connections/73544",
"_from" : "places/Aberdeen",
"_to" : "places/Inverness",
"_rev" : "_iXQt2wK---",
"travelTime" : 2.5
},
{
"_key" : "73546",
"_id" : "connections/73546",
"_from" : "places/Aberdeen",
"_to" : "places/Leuchars",
"_rev" : "_iXQt2wK--_",
"travelTime" : 1.5
},
{
"_key" : "73548",
"_id" : "connections/73548",
"_from" : "places/Leuchars",
"_to" : "places/Aberdeen",
"_rev" : "_iXQt2wK--A",
"travelTime" : 1
},
{
"_key" : "73550",
"_id" : "connections/73550",
"_from" : "places/Leuchars",
"_to" : "places/Edinburgh",
"_rev" : "_iXQt2wK--B",
"travelTime" : 1.5
},
{
"_key" : "73552",
"_id" : "connections/73552",
"_from" : "places/Edinburgh",
"_to" : "places/Leuchars",
"_rev" : "_iXQt2wO---",
"travelTime" : 3
},
{
"_key" : "73554",
"_id" : "connections/73554",
"_from" : "places/Edinburgh",
"_to" : "places/Glasgow",
"_rev" : "_iXQt2wO--_",
"travelTime" : 1
},
{
"_key" : "73556",
"_id" : "connections/73556",
"_from" : "places/Glasgow",
"_to" : "places/Edinburgh",
"_rev" : "_iXQt2wO--A",
"travelTime" : 1
},
{
"_key" : "73558",
"_id" : "connections/73558",
"_from" : "places/Edinburgh",
"_to" : "places/York",
"_rev" : "_iXQt2wO--B",
"travelTime" : 3.5
},
{
"_key" : "73560",
"_id" : "connections/73560",
"_from" : "places/York",
"_to" : "places/Edinburgh",
"_rev" : "_iXQt2wS---",
"travelTime" : 4
},
{
"_key" : "73562",
"_id" : "connections/73562",
"_from" : "places/Glasgow",
"_to" : "places/Carlisle",
"_rev" : "_iXQt2wS--_",
"travelTime" : 1
},
{
"_key" : "73564",
"_id" : "connections/73564",
"_from" : "places/Carlisle",
"_to" : "places/Glasgow",
"_rev" : "_iXQt2wS--A",
"travelTime" : 1
},
{
"_key" : "73566",
"_id" : "connections/73566",
"_from" : "places/Carlisle",
"_to" : "places/York",
"_rev" : "_iXQt2wW---",
"travelTime" : 2.5
},
{
"_key" : "73568",
"_id" : "connections/73568",
"_from" : "places/York",
"_to" : "places/Carlisle",
"_rev" : "_iXQt2wW--_",
"travelTime" : 3.5
},
{
"_key" : "73570",
"_id" : "connections/73570",
"_from" : "places/Carlisle",
"_to" : "places/Birmingham",
"_rev" : "_iXQt2wW--A",
"travelTime" : 2
},
{
"_key" : "73572",
"_id" : "connections/73572",
"_from" : "places/Birmingham",
"_to" : "places/Carlisle",
"_rev" : "_iXQt2wW--B",
"travelTime" : 1
},
{
"_key" : "73574",
"_id" : "connections/73574",
"_from" : "places/Birmingham",
"_to" : "places/London",
"_rev" : "_iXQt2wa---",
"travelTime" : 1.5
},
{
"_key" : "73576",
"_id" : "connections/73576",
"_from" : "places/London",
"_to" : "places/Birmingham",
"_rev" : "_iXQt2wa--_",
"travelTime" : 2.5
},
{
"_key" : "73578",
"_id" : "connections/73578",
"_from" : "places/Leuchars",
"_to" : "places/StAndrews",
"_rev" : "_iXQt2wa--A",
"travelTime" : 0.2
},
{
"_key" : "73580",
"_id" : "connections/73580",
"_from" : "places/StAndrews",
"_to" : "places/Leuchars",
"_rev" : "_iXQt2wa--B",
"travelTime" : 0.2
},
{
"_key" : "73582",
"_id" : "connections/73582",
"_from" : "places/York",
"_to" : "places/London",
"_rev" : "_iXQt2wa--C",
"travelTime" : 1.8
},
{
"_key" : "73584",
"_id" : "connections/73584",
"_from" : "places/London",
"_to" : "places/York",
"_rev" : "_iXQt2we---",
"travelTime" : 2
},
{
"_key" : "73586",
"_id" : "connections/73586",
"_from" : "places/London",
"_to" : "places/Brussels",
"_rev" : "_iXQt2we--_",
"travelTime" : 2.5
},
{
"_key" : "73588",
"_id" : "connections/73588",
"_from" : "places/Brussels",
"_to" : "places/London",
"_rev" : "_iXQt2we--A",
"travelTime" : 3.5
},
{
"_key" : "73590",
"_id" : "connections/73590",
"_from" : "places/Brussels",
"_to" : "places/Cologne",
"_rev" : "_iXQt2wu---",
"travelTime" : 2
},
{
"_key" : "73592",
"_id" : "connections/73592",
"_from" : "places/Cologne",
"_to" : "places/Brussels",
"_rev" : "_iXQt2wu--_",
"travelTime" : 1.5
},
{
"_key" : "73594",
"_id" : "connections/73594",
"_from" : "places/Toronto",
"_to" : "places/Winnipeg",
"_rev" : "_iXQt2wu--A",
"travelTime" : 36
},
{
"_key" : "73596",
"_id" : "connections/73596",
"_from" : "places/Winnipeg",
"_to" : "places/Toronto",
"_rev" : "_iXQt2wy---",
"travelTime" : 35
},
{
"_key" : "73598",
"_id" : "connections/73598",
"_from" : "places/Winnipeg",
"_to" : "places/Saskatoon",
"_rev" : "_iXQt2wy--_",
"travelTime" : 12
},
{
"_key" : "73600",
"_id" : "connections/73600",
"_from" : "places/Saskatoon",
"_to" : "places/Winnipeg",
"_rev" : "_iXQt2wy--A",
"travelTime" : 5
},
{
"_key" : "73602",
"_id" : "connections/73602",
"_from" : "places/Saskatoon",
"_to" : "places/Edmonton",
"_rev" : "_iXQt2wy--B",
"travelTime" : 12
},
{
"_key" : "73604",
"_id" : "connections/73604",
"_from" : "places/Edmonton",
"_to" : "places/Saskatoon",
"_rev" : "_iXQt2w2---",
"travelTime" : 17
},
{
"_key" : "73606",
"_id" : "connections/73606",
"_from" : "places/Edmonton",
"_to" : "places/Jasper",
"_rev" : "_iXQt2w2--_",
"travelTime" : 6
},
{
"_key" : "73608",
"_id" : "connections/73608",
"_from" : "places/Jasper",
"_to" : "places/Edmonton",
"_rev" : "_iXQt2w2--A",
"travelTime" : 5
},
{
"_key" : "73610",
"_id" : "connections/73610",
"_from" : "places/Jasper",
"_to" : "places/Vancouver",
"_rev" : "_iXQt2w2--B",
"travelTime" : 12
},
{
"_key" : "73612",
"_id" : "connections/73612",
"_from" : "places/Vancouver",
"_to" : "places/Jasper",
"_rev" : "_iXQt2w6---",
"travelTime" : 13
}
]
Mps Graph
The mps_graph
has been created to demonstrate shortest path algorithms and
the abbreviation stands for multiple path search.
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.
With the Shortest Path algorithm, you either get the shortest path A - B - C or A - D - C. With the All Shortest Paths algorithm, both shortest paths are returned.
Example of how to create the graph, inspect its vertices and edges, and delete it again:
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("mps_graph");
db.mps_verts.toArray();
db.mps_edges.toArray();
examples.dropGraph("mps_graph");
[
{
"_key" : "A",
"_id" : "mps_verts/A",
"_rev" : "_iXQt2zK---"
},
{
"_key" : "B",
"_id" : "mps_verts/B",
"_rev" : "_iXQt2zK--_"
},
{
"_key" : "C",
"_id" : "mps_verts/C",
"_rev" : "_iXQt2zO---"
},
{
"_key" : "D",
"_id" : "mps_verts/D",
"_rev" : "_iXQt2zO--_"
},
{
"_key" : "E",
"_id" : "mps_verts/E",
"_rev" : "_iXQt2zO--A"
},
{
"_key" : "F",
"_id" : "mps_verts/F",
"_rev" : "_iXQt2zO--B"
}
]
[
{
"_key" : "73665",
"_id" : "mps_edges/73665",
"_from" : "mps_verts/A",
"_to" : "mps_verts/B",
"_rev" : "_iXQt2zO--C",
"vertex" : "A"
},
{
"_key" : "73667",
"_id" : "mps_edges/73667",
"_from" : "mps_verts/A",
"_to" : "mps_verts/E",
"_rev" : "_iXQt2zS---",
"vertex" : "A"
},
{
"_key" : "73669",
"_id" : "mps_edges/73669",
"_from" : "mps_verts/A",
"_to" : "mps_verts/D",
"_rev" : "_iXQt2zS--_",
"vertex" : "A"
},
{
"_key" : "73671",
"_id" : "mps_edges/73671",
"_from" : "mps_verts/B",
"_to" : "mps_verts/C",
"_rev" : "_iXQt2zS--A",
"vertex" : "B"
},
{
"_key" : "73673",
"_id" : "mps_edges/73673",
"_from" : "mps_verts/D",
"_to" : "mps_verts/C",
"_rev" : "_iXQt2zW---",
"vertex" : "D"
},
{
"_key" : "73675",
"_id" : "mps_edges/73675",
"_from" : "mps_verts/E",
"_to" : "mps_verts/F",
"_rev" : "_iXQt2zW--_",
"vertex" : "E"
},
{
"_key" : "73677",
"_id" : "mps_edges/73677",
"_from" : "mps_verts/F",
"_to" : "mps_verts/C",
"_rev" : "_iXQt2zW--A",
"vertex" : "F"
}
]
World Graph
The worldCountry
graph has as node structure as follows:
world → continent → country → capital
In some cases, edge directions aren’t forward. Therefore, it may get displayed disjunct in the graph viewer.
You can create the graph as a named graph using the name worldCountry
, or as
an anonymous graph (vertex and edge collections only) using the name
worldCountryUnManaged
.
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("worldCountry");
db.worldVertices.toArray();
db.worldEdges.toArray();
examples.dropGraph("worldCountry");
var g = examples.loadGraph("worldCountryUnManaged");
examples.dropGraph("worldCountryUnManaged");
[
{
"_key" : "world",
"_id" : "worldVertices/world",
"_rev" : "_iXQt20a---",
"name" : "World",
"type" : "root"
},
{
"_key" : "continent-africa",
"_id" : "worldVertices/continent-africa",
"_rev" : "_iXQt20a--_",
"name" : "Africa",
"type" : "continent"
},
{
"_key" : "continent-asia",
"_id" : "worldVertices/continent-asia",
"_rev" : "_iXQt20a--A",
"name" : "Asia",
"type" : "continent"
},
{
"_key" : "continent-australia",
"_id" : "worldVertices/continent-australia",
"_rev" : "_iXQt20e---",
"name" : "Australia",
"type" : "continent"
},
{
"_key" : "continent-europe",
"_id" : "worldVertices/continent-europe",
"_rev" : "_iXQt20e--_",
"name" : "Europe",
"type" : "continent"
},
{
"_key" : "continent-north-america",
"_id" : "worldVertices/continent-north-america",
"_rev" : "_iXQt20i---",
"name" : "North America",
"type" : "continent"
},
{
"_key" : "continent-south-america",
"_id" : "worldVertices/continent-south-america",
"_rev" : "_iXQt20i--_",
"name" : "South America",
"type" : "continent"
},
{
"_key" : "country-afghanistan",
"_id" : "worldVertices/country-afghanistan",
"_rev" : "_iXQt20i--A",
"name" : "Afghanistan",
"type" : "country",
"code" : "AFG"
},
{
"_key" : "country-albania",
"_id" : "worldVertices/country-albania",
"_rev" : "_iXQt20m---",
"name" : "Albania",
"type" : "country",
"code" : "ALB"
},
{
"_key" : "country-algeria",
"_id" : "worldVertices/country-algeria",
"_rev" : "_iXQt20m--_",
"name" : "Algeria",
"type" : "country",
"code" : "DZA"
},
{
"_key" : "country-andorra",
"_id" : "worldVertices/country-andorra",
"_rev" : "_iXQt20m--A",
"name" : "Andorra",
"type" : "country",
"code" : "AND"
},
{
"_key" : "country-angola",
"_id" : "worldVertices/country-angola",
"_rev" : "_iXQt20m--B",
"name" : "Angola",
"type" : "country",
"code" : "AGO"
},
{
"_key" : "country-antigua-and-barbuda",
"_id" : "worldVertices/country-antigua-and-barbuda",
"_rev" : "_iXQt20m--C",
"name" : "Antigua and Barbuda",
"type" : "country",
"code" : "ATG"
},
{
"_key" : "country-argentina",
"_id" : "worldVertices/country-argentina",
"_rev" : "_iXQt20q---",
"name" : "Argentina",
"type" : "country",
"code" : "ARG"
},
{
"_key" : "country-australia",
"_id" : "worldVertices/country-australia",
"_rev" : "_iXQt20q--_",
"name" : "Australia",
"type" : "country",
"code" : "AUS"
},
{
"_key" : "country-austria",
"_id" : "worldVertices/country-austria",
"_rev" : "_iXQt20q--A",
"name" : "Austria",
"type" : "country",
"code" : "AUT"
},
{
"_key" : "country-bahamas",
"_id" : "worldVertices/country-bahamas",
"_rev" : "_iXQt20q--B",
"name" : "Bahamas",
"type" : "country",
"code" : "BHS"
},
{
"_key" : "country-bahrain",
"_id" : "worldVertices/country-bahrain",
"_rev" : "_iXQt20q--C",
"name" : "Bahrain",
"type" : "country",
"code" : "BHR"
},
{
"_key" : "country-bangladesh",
"_id" : "worldVertices/country-bangladesh",
"_rev" : "_iXQt20q--D",
"name" : "Bangladesh",
"type" : "country",
"code" : "BGD"
},
{
"_key" : "country-barbados",
"_id" : "worldVertices/country-barbados",
"_rev" : "_iXQt20u---",
"name" : "Barbados",
"type" : "country",
"code" : "BRB"
},
{
"_key" : "country-belgium",
"_id" : "worldVertices/country-belgium",
"_rev" : "_iXQt20u--_",
"name" : "Belgium",
"type" : "country",
"code" : "BEL"
},
{
"_key" : "country-bhutan",
"_id" : "worldVertices/country-bhutan",
"_rev" : "_iXQt20u--A",
"name" : "Bhutan",
"type" : "country",
"code" : "BTN"
},
{
"_key" : "country-bolivia",
"_id" : "worldVertices/country-bolivia",
"_rev" : "_iXQt20u--B",
"name" : "Bolivia",
"type" : "country",
"code" : "BOL"
},
{
"_key" : "country-bosnia-and-herzegovina",
"_id" : "worldVertices/country-bosnia-and-herzegovina",
"_rev" : "_iXQt20u--C",
"name" : "Bosnia and Herzegovina",
"type" : "country",
"code" : "BIH"
},
{
"_key" : "country-botswana",
"_id" : "worldVertices/country-botswana",
"_rev" : "_iXQt20y---",
"name" : "Botswana",
"type" : "country",
"code" : "BWA"
},
{
"_key" : "country-brazil",
"_id" : "worldVertices/country-brazil",
"_rev" : "_iXQt20y--_",
"name" : "Brazil",
"type" : "country",
"code" : "BRA"
},
{
"_key" : "country-brunei",
"_id" : "worldVertices/country-brunei",
"_rev" : "_iXQt20y--A",
"name" : "Brunei",
"type" : "country",
"code" : "BRN"
},
{
"_key" : "country-bulgaria",
"_id" : "worldVertices/country-bulgaria",
"_rev" : "_iXQt20y--B",
"name" : "Bulgaria",
"type" : "country",
"code" : "BGR"
},
{
"_key" : "country-burkina-faso",
"_id" : "worldVertices/country-burkina-faso",
"_rev" : "_iXQt202---",
"name" : "Burkina Faso",
"type" : "country",
"code" : "BFA"
},
{
"_key" : "country-burundi",
"_id" : "worldVertices/country-burundi",
"_rev" : "_iXQt202--_",
"name" : "Burundi",
"type" : "country",
"code" : "BDI"
},
{
"_key" : "country-cambodia",
"_id" : "worldVertices/country-cambodia",
"_rev" : "_iXQt202--A",
"name" : "Cambodia",
"type" : "country",
"code" : "KHM"
},
{
"_key" : "country-cameroon",
"_id" : "worldVertices/country-cameroon",
"_rev" : "_iXQt202--B",
"name" : "Cameroon",
"type" : "country",
"code" : "CMR"
},
{
"_key" : "country-canada",
"_id" : "worldVertices/country-canada",
"_rev" : "_iXQt206---",
"name" : "Canada",
"type" : "country",
"code" : "CAN"
},
{
"_key" : "country-chad",
"_id" : "worldVertices/country-chad",
"_rev" : "_iXQt21C---",
"name" : "Chad",
"type" : "country",
"code" : "TCD"
},
{
"_key" : "country-chile",
"_id" : "worldVertices/country-chile",
"_rev" : "_iXQt21C--_",
"name" : "Chile",
"type" : "country",
"code" : "CHL"
},
{
"_key" : "country-colombia",
"_id" : "worldVertices/country-colombia",
"_rev" : "_iXQt21C--A",
"name" : "Colombia",
"type" : "country",
"code" : "COL"
},
{
"_key" : "country-cote-d-ivoire",
"_id" : "worldVertices/country-cote-d-ivoire",
"_rev" : "_iXQt21G---",
"name" : "Cote d'Ivoire",
"type" : "country",
"code" : "CIV"
},
{
"_key" : "country-croatia",
"_id" : "worldVertices/country-croatia",
"_rev" : "_iXQt21G--_",
"name" : "Croatia",
"type" : "country",
"code" : "HRV"
},
{
"_key" : "country-czech-republic",
"_id" : "worldVertices/country-czech-republic",
"_rev" : "_iXQt21G--A",
"name" : "Czech Republic",
"type" : "country",
"code" : "CZE"
},
{
"_key" : "country-denmark",
"_id" : "worldVertices/country-denmark",
"_rev" : "_iXQt21G--B",
"name" : "Denmark",
"type" : "country",
"code" : "DNK"
},
{
"_key" : "country-ecuador",
"_id" : "worldVertices/country-ecuador",
"_rev" : "_iXQt21K---",
"name" : "Ecuador",
"type" : "country",
"code" : "ECU"
},
{
"_key" : "country-egypt",
"_id" : "worldVertices/country-egypt",
"_rev" : "_iXQt21K--_",
"name" : "Egypt",
"type" : "country",
"code" : "EGY"
},
{
"_key" : "country-eritrea",
"_id" : "worldVertices/country-eritrea",
"_rev" : "_iXQt21K--A",
"name" : "Eritrea",
"type" : "country",
"code" : "ERI"
},
{
"_key" : "country-finland",
"_id" : "worldVertices/country-finland",
"_rev" : "_iXQt21K--B",
"name" : "Finland",
"type" : "country",
"code" : "FIN"
},
{
"_key" : "country-france",
"_id" : "worldVertices/country-france",
"_rev" : "_iXQt21K--C",
"name" : "France",
"type" : "country",
"code" : "FRA"
},
{
"_key" : "country-germany",
"_id" : "worldVertices/country-germany",
"_rev" : "_iXQt21O---",
"name" : "Germany",
"type" : "country",
"code" : "DEU"
},
{
"_key" : "country-people-s-republic-of-china",
"_id" : "worldVertices/country-people-s-republic-of-china",
"_rev" : "_iXQt21O--_",
"name" : "People's Republic of China",
"type" : "country",
"code" : "CHN"
},
{
"_key" : "capital-algiers",
"_id" : "worldVertices/capital-algiers",
"_rev" : "_iXQt21O--A",
"name" : "Algiers",
"type" : "capital"
},
{
"_key" : "capital-andorra-la-vella",
"_id" : "worldVertices/capital-andorra-la-vella",
"_rev" : "_iXQt21O--B",
"name" : "Andorra la Vella",
"type" : "capital"
},
{
"_key" : "capital-asmara",
"_id" : "worldVertices/capital-asmara",
"_rev" : "_iXQt21S---",
"name" : "Asmara",
"type" : "capital"
},
{
"_key" : "capital-bandar-seri-begawan",
"_id" : "worldVertices/capital-bandar-seri-begawan",
"_rev" : "_iXQt21S--_",
"name" : "Bandar Seri Begawan",
"type" : "capital"
},
{
"_key" : "capital-beijing",
"_id" : "worldVertices/capital-beijing",
"_rev" : "_iXQt21S--A",
"name" : "Beijing",
"type" : "capital"
},
{
"_key" : "capital-berlin",
"_id" : "worldVertices/capital-berlin",
"_rev" : "_iXQt21S--B",
"name" : "Berlin",
"type" : "capital"
},
{
"_key" : "capital-bogota",
"_id" : "worldVertices/capital-bogota",
"_rev" : "_iXQt21S--C",
"name" : "Bogota",
"type" : "capital"
},
{
"_key" : "capital-brasilia",
"_id" : "worldVertices/capital-brasilia",
"_rev" : "_iXQt21W---",
"name" : "Brasilia",
"type" : "capital"
},
{
"_key" : "capital-bridgetown",
"_id" : "worldVertices/capital-bridgetown",
"_rev" : "_iXQt21W--_",
"name" : "Bridgetown",
"type" : "capital"
},
{
"_key" : "capital-brussels",
"_id" : "worldVertices/capital-brussels",
"_rev" : "_iXQt21W--A",
"name" : "Brussels",
"type" : "capital"
},
{
"_key" : "capital-buenos-aires",
"_id" : "worldVertices/capital-buenos-aires",
"_rev" : "_iXQt21W--B",
"name" : "Buenos Aires",
"type" : "capital"
},
{
"_key" : "capital-bujumbura",
"_id" : "worldVertices/capital-bujumbura",
"_rev" : "_iXQt21W--C",
"name" : "Bujumbura",
"type" : "capital"
},
{
"_key" : "capital-cairo",
"_id" : "worldVertices/capital-cairo",
"_rev" : "_iXQt21W--D",
"name" : "Cairo",
"type" : "capital"
},
{
"_key" : "capital-canberra",
"_id" : "worldVertices/capital-canberra",
"_rev" : "_iXQt21a---",
"name" : "Canberra",
"type" : "capital"
},
{
"_key" : "capital-copenhagen",
"_id" : "worldVertices/capital-copenhagen",
"_rev" : "_iXQt21a--_",
"name" : "Copenhagen",
"type" : "capital"
},
{
"_key" : "capital-dhaka",
"_id" : "worldVertices/capital-dhaka",
"_rev" : "_iXQt21a--A",
"name" : "Dhaka",
"type" : "capital"
},
{
"_key" : "capital-gaborone",
"_id" : "worldVertices/capital-gaborone",
"_rev" : "_iXQt21a--B",
"name" : "Gaborone",
"type" : "capital"
},
{
"_key" : "capital-helsinki",
"_id" : "worldVertices/capital-helsinki",
"_rev" : "_iXQt21a--C",
"name" : "Helsinki",
"type" : "capital"
},
{
"_key" : "capital-kabul",
"_id" : "worldVertices/capital-kabul",
"_rev" : "_iXQt21a--D",
"name" : "Kabul",
"type" : "capital"
},
{
"_key" : "capital-la-paz",
"_id" : "worldVertices/capital-la-paz",
"_rev" : "_iXQt21e---",
"name" : "La Paz",
"type" : "capital"
},
{
"_key" : "capital-luanda",
"_id" : "worldVertices/capital-luanda",
"_rev" : "_iXQt21e--_",
"name" : "Luanda",
"type" : "capital"
},
{
"_key" : "capital-manama",
"_id" : "worldVertices/capital-manama",
"_rev" : "_iXQt21e--A",
"name" : "Manama",
"type" : "capital"
},
{
"_key" : "capital-nassau",
"_id" : "worldVertices/capital-nassau",
"_rev" : "_iXQt21e--B",
"name" : "Nassau",
"type" : "capital"
},
{
"_key" : "capital-n-djamena",
"_id" : "worldVertices/capital-n-djamena",
"_rev" : "_iXQt21e--C",
"name" : "N'Djamena",
"type" : "capital"
},
{
"_key" : "capital-ottawa",
"_id" : "worldVertices/capital-ottawa",
"_rev" : "_iXQt21e--D",
"name" : "Ottawa",
"type" : "capital"
},
{
"_key" : "capital-ouagadougou",
"_id" : "worldVertices/capital-ouagadougou",
"_rev" : "_iXQt21e--E",
"name" : "Ouagadougou",
"type" : "capital"
},
{
"_key" : "capital-paris",
"_id" : "worldVertices/capital-paris",
"_rev" : "_iXQt21i---",
"name" : "Paris",
"type" : "capital"
},
{
"_key" : "capital-phnom-penh",
"_id" : "worldVertices/capital-phnom-penh",
"_rev" : "_iXQt21i--_",
"name" : "Phnom Penh",
"type" : "capital"
},
{
"_key" : "capital-prague",
"_id" : "worldVertices/capital-prague",
"_rev" : "_iXQt21i--A",
"name" : "Prague",
"type" : "capital"
},
{
"_key" : "capital-quito",
"_id" : "worldVertices/capital-quito",
"_rev" : "_iXQt21i--B",
"name" : "Quito",
"type" : "capital"
},
{
"_key" : "capital-saint-john-s",
"_id" : "worldVertices/capital-saint-john-s",
"_rev" : "_iXQt21m---",
"name" : "Saint John's",
"type" : "capital"
},
{
"_key" : "capital-santiago",
"_id" : "worldVertices/capital-santiago",
"_rev" : "_iXQt21m--_",
"name" : "Santiago",
"type" : "capital"
},
{
"_key" : "capital-sarajevo",
"_id" : "worldVertices/capital-sarajevo",
"_rev" : "_iXQt21m--A",
"name" : "Sarajevo",
"type" : "capital"
},
{
"_key" : "capital-sofia",
"_id" : "worldVertices/capital-sofia",
"_rev" : "_iXQt21m--B",
"name" : "Sofia",
"type" : "capital"
},
{
"_key" : "capital-thimphu",
"_id" : "worldVertices/capital-thimphu",
"_rev" : "_iXQt21m--C",
"name" : "Thimphu",
"type" : "capital"
},
{
"_key" : "capital-tirana",
"_id" : "worldVertices/capital-tirana",
"_rev" : "_iXQt21q---",
"name" : "Tirana",
"type" : "capital"
},
{
"_key" : "capital-vienna",
"_id" : "worldVertices/capital-vienna",
"_rev" : "_iXQt21q--_",
"name" : "Vienna",
"type" : "capital"
},
{
"_key" : "capital-yamoussoukro",
"_id" : "worldVertices/capital-yamoussoukro",
"_rev" : "_iXQt21q--A",
"name" : "Yamoussoukro",
"type" : "capital"
},
{
"_key" : "capital-yaounde",
"_id" : "worldVertices/capital-yaounde",
"_rev" : "_iXQt21q--B",
"name" : "Yaounde",
"type" : "capital"
},
{
"_key" : "capital-zagreb",
"_id" : "worldVertices/capital-zagreb",
"_rev" : "_iXQt21q--C",
"name" : "Zagreb",
"type" : "capital"
}
]
[
{
"_key" : "73811",
"_id" : "worldEdges/73811",
"_from" : "worldVertices/continent-africa",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21q--D",
"type" : "is-in"
},
{
"_key" : "73813",
"_id" : "worldEdges/73813",
"_from" : "worldVertices/continent-asia",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21u---",
"type" : "is-in"
},
{
"_key" : "73815",
"_id" : "worldEdges/73815",
"_from" : "worldVertices/continent-australia",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21u--_",
"type" : "is-in"
},
{
"_key" : "73817",
"_id" : "worldEdges/73817",
"_from" : "worldVertices/continent-europe",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21u--A",
"type" : "is-in"
},
{
"_key" : "73819",
"_id" : "worldEdges/73819",
"_from" : "worldVertices/continent-north-america",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21u--B",
"type" : "is-in"
},
{
"_key" : "73821",
"_id" : "worldEdges/73821",
"_from" : "worldVertices/continent-south-america",
"_to" : "worldVertices/world",
"_rev" : "_iXQt21u--C",
"type" : "is-in"
},
{
"_key" : "73823",
"_id" : "worldEdges/73823",
"_from" : "worldVertices/country-afghanistan",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt21y---",
"type" : "is-in"
},
{
"_key" : "73825",
"_id" : "worldEdges/73825",
"_from" : "worldVertices/country-albania",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt21y--_",
"type" : "is-in"
},
{
"_key" : "73827",
"_id" : "worldEdges/73827",
"_from" : "worldVertices/country-algeria",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt21y--A",
"type" : "is-in"
},
{
"_key" : "73829",
"_id" : "worldEdges/73829",
"_from" : "worldVertices/country-andorra",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt21y--B",
"type" : "is-in"
},
{
"_key" : "73831",
"_id" : "worldEdges/73831",
"_from" : "worldVertices/country-angola",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt212---",
"type" : "is-in"
},
{
"_key" : "73833",
"_id" : "worldEdges/73833",
"_from" : "worldVertices/country-antigua-and-barbuda",
"_to" : "worldVertices/continent-north-america",
"_rev" : "_iXQt212--_",
"type" : "is-in"
},
{
"_key" : "73835",
"_id" : "worldEdges/73835",
"_from" : "worldVertices/country-argentina",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt212--A",
"type" : "is-in"
},
{
"_key" : "73837",
"_id" : "worldEdges/73837",
"_from" : "worldVertices/country-australia",
"_to" : "worldVertices/continent-australia",
"_rev" : "_iXQt212--B",
"type" : "is-in"
},
{
"_key" : "73839",
"_id" : "worldEdges/73839",
"_from" : "worldVertices/country-austria",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt212--C",
"type" : "is-in"
},
{
"_key" : "73841",
"_id" : "worldEdges/73841",
"_from" : "worldVertices/country-bahamas",
"_to" : "worldVertices/continent-north-america",
"_rev" : "_iXQt216---",
"type" : "is-in"
},
{
"_key" : "73843",
"_id" : "worldEdges/73843",
"_from" : "worldVertices/country-bahrain",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt216--_",
"type" : "is-in"
},
{
"_key" : "73845",
"_id" : "worldEdges/73845",
"_from" : "worldVertices/country-bangladesh",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt216--A",
"type" : "is-in"
},
{
"_key" : "73847",
"_id" : "worldEdges/73847",
"_from" : "worldVertices/country-barbados",
"_to" : "worldVertices/continent-north-america",
"_rev" : "_iXQt216--B",
"type" : "is-in"
},
{
"_key" : "73849",
"_id" : "worldEdges/73849",
"_from" : "worldVertices/country-belgium",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22----",
"type" : "is-in"
},
{
"_key" : "73851",
"_id" : "worldEdges/73851",
"_from" : "worldVertices/country-bhutan",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt22---_",
"type" : "is-in"
},
{
"_key" : "73853",
"_id" : "worldEdges/73853",
"_from" : "worldVertices/country-bolivia",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt22---A",
"type" : "is-in"
},
{
"_key" : "73855",
"_id" : "worldEdges/73855",
"_from" : "worldVertices/country-bosnia-and-herzegovina",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22---B",
"type" : "is-in"
},
{
"_key" : "73857",
"_id" : "worldEdges/73857",
"_from" : "worldVertices/country-botswana",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22C---",
"type" : "is-in"
},
{
"_key" : "73859",
"_id" : "worldEdges/73859",
"_from" : "worldVertices/country-brazil",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt22C--_",
"type" : "is-in"
},
{
"_key" : "73861",
"_id" : "worldEdges/73861",
"_from" : "worldVertices/country-brunei",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt22C--A",
"type" : "is-in"
},
{
"_key" : "73863",
"_id" : "worldEdges/73863",
"_from" : "worldVertices/country-bulgaria",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22C--B",
"type" : "is-in"
},
{
"_key" : "73865",
"_id" : "worldEdges/73865",
"_from" : "worldVertices/country-burkina-faso",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22G---",
"type" : "is-in"
},
{
"_key" : "73867",
"_id" : "worldEdges/73867",
"_from" : "worldVertices/country-burundi",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22G--_",
"type" : "is-in"
},
{
"_key" : "73869",
"_id" : "worldEdges/73869",
"_from" : "worldVertices/country-cambodia",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt22G--A",
"type" : "is-in"
},
{
"_key" : "73871",
"_id" : "worldEdges/73871",
"_from" : "worldVertices/country-cameroon",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22G--B",
"type" : "is-in"
},
{
"_key" : "73873",
"_id" : "worldEdges/73873",
"_from" : "worldVertices/country-canada",
"_to" : "worldVertices/continent-north-america",
"_rev" : "_iXQt22G--C",
"type" : "is-in"
},
{
"_key" : "73875",
"_id" : "worldEdges/73875",
"_from" : "worldVertices/country-chad",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22K---",
"type" : "is-in"
},
{
"_key" : "73877",
"_id" : "worldEdges/73877",
"_from" : "worldVertices/country-chile",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt22K--_",
"type" : "is-in"
},
{
"_key" : "73879",
"_id" : "worldEdges/73879",
"_from" : "worldVertices/country-colombia",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt22K--A",
"type" : "is-in"
},
{
"_key" : "73881",
"_id" : "worldEdges/73881",
"_from" : "worldVertices/country-cote-d-ivoire",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22K--B",
"type" : "is-in"
},
{
"_key" : "73883",
"_id" : "worldEdges/73883",
"_from" : "worldVertices/country-croatia",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22O---",
"type" : "is-in"
},
{
"_key" : "73885",
"_id" : "worldEdges/73885",
"_from" : "worldVertices/country-czech-republic",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22O--_",
"type" : "is-in"
},
{
"_key" : "73887",
"_id" : "worldEdges/73887",
"_from" : "worldVertices/country-denmark",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22O--A",
"type" : "is-in"
},
{
"_key" : "73889",
"_id" : "worldEdges/73889",
"_from" : "worldVertices/country-ecuador",
"_to" : "worldVertices/continent-south-america",
"_rev" : "_iXQt22O--B",
"type" : "is-in"
},
{
"_key" : "73891",
"_id" : "worldEdges/73891",
"_from" : "worldVertices/country-egypt",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22O--C",
"type" : "is-in"
},
{
"_key" : "73893",
"_id" : "worldEdges/73893",
"_from" : "worldVertices/country-eritrea",
"_to" : "worldVertices/continent-africa",
"_rev" : "_iXQt22S---",
"type" : "is-in"
},
{
"_key" : "73895",
"_id" : "worldEdges/73895",
"_from" : "worldVertices/country-finland",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22S--_",
"type" : "is-in"
},
{
"_key" : "73897",
"_id" : "worldEdges/73897",
"_from" : "worldVertices/country-france",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22S--A",
"type" : "is-in"
},
{
"_key" : "73899",
"_id" : "worldEdges/73899",
"_from" : "worldVertices/country-germany",
"_to" : "worldVertices/continent-europe",
"_rev" : "_iXQt22S--B",
"type" : "is-in"
},
{
"_key" : "73901",
"_id" : "worldEdges/73901",
"_from" : "worldVertices/country-people-s-republic-of-china",
"_to" : "worldVertices/continent-asia",
"_rev" : "_iXQt22S--C",
"type" : "is-in"
},
{
"_key" : "73903",
"_id" : "worldEdges/73903",
"_from" : "worldVertices/capital-algiers",
"_to" : "worldVertices/country-algeria",
"_rev" : "_iXQt22W---",
"type" : "is-in"
},
{
"_key" : "73905",
"_id" : "worldEdges/73905",
"_from" : "worldVertices/capital-andorra-la-vella",
"_to" : "worldVertices/country-andorra",
"_rev" : "_iXQt22W--_",
"type" : "is-in"
},
{
"_key" : "73907",
"_id" : "worldEdges/73907",
"_from" : "worldVertices/capital-asmara",
"_to" : "worldVertices/country-eritrea",
"_rev" : "_iXQt22W--A",
"type" : "is-in"
},
{
"_key" : "73909",
"_id" : "worldEdges/73909",
"_from" : "worldVertices/capital-bandar-seri-begawan",
"_to" : "worldVertices/country-brunei",
"_rev" : "_iXQt22W--B",
"type" : "is-in"
},
{
"_key" : "73911",
"_id" : "worldEdges/73911",
"_from" : "worldVertices/capital-beijing",
"_to" : "worldVertices/country-people-s-republic-of-china",
"_rev" : "_iXQt22W--C",
"type" : "is-in"
},
{
"_key" : "73913",
"_id" : "worldEdges/73913",
"_from" : "worldVertices/capital-berlin",
"_to" : "worldVertices/country-germany",
"_rev" : "_iXQt22W--D",
"type" : "is-in"
},
{
"_key" : "73915",
"_id" : "worldEdges/73915",
"_from" : "worldVertices/capital-bogota",
"_to" : "worldVertices/country-colombia",
"_rev" : "_iXQt22a---",
"type" : "is-in"
},
{
"_key" : "73917",
"_id" : "worldEdges/73917",
"_from" : "worldVertices/capital-brasilia",
"_to" : "worldVertices/country-brazil",
"_rev" : "_iXQt22a--_",
"type" : "is-in"
},
{
"_key" : "73919",
"_id" : "worldEdges/73919",
"_from" : "worldVertices/capital-bridgetown",
"_to" : "worldVertices/country-barbados",
"_rev" : "_iXQt22a--A",
"type" : "is-in"
},
{
"_key" : "73921",
"_id" : "worldEdges/73921",
"_from" : "worldVertices/capital-brussels",
"_to" : "worldVertices/country-belgium",
"_rev" : "_iXQt22a--B",
"type" : "is-in"
},
{
"_key" : "73923",
"_id" : "worldEdges/73923",
"_from" : "worldVertices/capital-buenos-aires",
"_to" : "worldVertices/country-argentina",
"_rev" : "_iXQt22a--C",
"type" : "is-in"
},
{
"_key" : "73925",
"_id" : "worldEdges/73925",
"_from" : "worldVertices/capital-bujumbura",
"_to" : "worldVertices/country-burundi",
"_rev" : "_iXQt22e---",
"type" : "is-in"
},
{
"_key" : "73927",
"_id" : "worldEdges/73927",
"_from" : "worldVertices/capital-cairo",
"_to" : "worldVertices/country-egypt",
"_rev" : "_iXQt22e--_",
"type" : "is-in"
},
{
"_key" : "73929",
"_id" : "worldEdges/73929",
"_from" : "worldVertices/capital-canberra",
"_to" : "worldVertices/country-australia",
"_rev" : "_iXQt22e--A",
"type" : "is-in"
},
{
"_key" : "73931",
"_id" : "worldEdges/73931",
"_from" : "worldVertices/capital-copenhagen",
"_to" : "worldVertices/country-denmark",
"_rev" : "_iXQt22e--B",
"type" : "is-in"
},
{
"_key" : "73933",
"_id" : "worldEdges/73933",
"_from" : "worldVertices/capital-dhaka",
"_to" : "worldVertices/country-bangladesh",
"_rev" : "_iXQt22e--C",
"type" : "is-in"
},
{
"_key" : "73935",
"_id" : "worldEdges/73935",
"_from" : "worldVertices/capital-gaborone",
"_to" : "worldVertices/country-botswana",
"_rev" : "_iXQt22i---",
"type" : "is-in"
},
{
"_key" : "73937",
"_id" : "worldEdges/73937",
"_from" : "worldVertices/capital-helsinki",
"_to" : "worldVertices/country-finland",
"_rev" : "_iXQt22i--_",
"type" : "is-in"
},
{
"_key" : "73939",
"_id" : "worldEdges/73939",
"_from" : "worldVertices/capital-kabul",
"_to" : "worldVertices/country-afghanistan",
"_rev" : "_iXQt22i--A",
"type" : "is-in"
},
{
"_key" : "73941",
"_id" : "worldEdges/73941",
"_from" : "worldVertices/capital-la-paz",
"_to" : "worldVertices/country-bolivia",
"_rev" : "_iXQt22i--B",
"type" : "is-in"
},
{
"_key" : "73943",
"_id" : "worldEdges/73943",
"_from" : "worldVertices/capital-luanda",
"_to" : "worldVertices/country-angola",
"_rev" : "_iXQt22m---",
"type" : "is-in"
},
{
"_key" : "73945",
"_id" : "worldEdges/73945",
"_from" : "worldVertices/capital-manama",
"_to" : "worldVertices/country-bahrain",
"_rev" : "_iXQt22m--_",
"type" : "is-in"
},
{
"_key" : "73947",
"_id" : "worldEdges/73947",
"_from" : "worldVertices/capital-nassau",
"_to" : "worldVertices/country-bahamas",
"_rev" : "_iXQt22m--A",
"type" : "is-in"
},
{
"_key" : "73949",
"_id" : "worldEdges/73949",
"_from" : "worldVertices/capital-n-djamena",
"_to" : "worldVertices/country-chad",
"_rev" : "_iXQt22m--B",
"type" : "is-in"
},
{
"_key" : "73951",
"_id" : "worldEdges/73951",
"_from" : "worldVertices/capital-ottawa",
"_to" : "worldVertices/country-canada",
"_rev" : "_iXQt22q---",
"type" : "is-in"
},
{
"_key" : "73953",
"_id" : "worldEdges/73953",
"_from" : "worldVertices/capital-ouagadougou",
"_to" : "worldVertices/country-burkina-faso",
"_rev" : "_iXQt22q--_",
"type" : "is-in"
},
{
"_key" : "73955",
"_id" : "worldEdges/73955",
"_from" : "worldVertices/capital-paris",
"_to" : "worldVertices/country-france",
"_rev" : "_iXQt22q--A",
"type" : "is-in"
},
{
"_key" : "73957",
"_id" : "worldEdges/73957",
"_from" : "worldVertices/capital-phnom-penh",
"_to" : "worldVertices/country-cambodia",
"_rev" : "_iXQt22q--B",
"type" : "is-in"
},
{
"_key" : "73959",
"_id" : "worldEdges/73959",
"_from" : "worldVertices/capital-prague",
"_to" : "worldVertices/country-czech-republic",
"_rev" : "_iXQt22q--C",
"type" : "is-in"
},
{
"_key" : "73961",
"_id" : "worldEdges/73961",
"_from" : "worldVertices/capital-quito",
"_to" : "worldVertices/country-ecuador",
"_rev" : "_iXQt22u---",
"type" : "is-in"
},
{
"_key" : "73963",
"_id" : "worldEdges/73963",
"_from" : "worldVertices/capital-saint-john-s",
"_to" : "worldVertices/country-antigua-and-barbuda",
"_rev" : "_iXQt22u--_",
"type" : "is-in"
},
{
"_key" : "73965",
"_id" : "worldEdges/73965",
"_from" : "worldVertices/capital-santiago",
"_to" : "worldVertices/country-chile",
"_rev" : "_iXQt22u--A",
"type" : "is-in"
},
{
"_key" : "73967",
"_id" : "worldEdges/73967",
"_from" : "worldVertices/capital-sarajevo",
"_to" : "worldVertices/country-bosnia-and-herzegovina",
"_rev" : "_iXQt22u--B",
"type" : "is-in"
},
{
"_key" : "73969",
"_id" : "worldEdges/73969",
"_from" : "worldVertices/capital-sofia",
"_to" : "worldVertices/country-bulgaria",
"_rev" : "_iXQt22u--C",
"type" : "is-in"
},
{
"_key" : "73971",
"_id" : "worldEdges/73971",
"_from" : "worldVertices/capital-thimphu",
"_to" : "worldVertices/country-bhutan",
"_rev" : "_iXQt22y---",
"type" : "is-in"
},
{
"_key" : "73973",
"_id" : "worldEdges/73973",
"_from" : "worldVertices/capital-tirana",
"_to" : "worldVertices/country-albania",
"_rev" : "_iXQt22y--_",
"type" : "is-in"
},
{
"_key" : "73975",
"_id" : "worldEdges/73975",
"_from" : "worldVertices/capital-vienna",
"_to" : "worldVertices/country-austria",
"_rev" : "_iXQt22y--A",
"type" : "is-in"
},
{
"_key" : "73977",
"_id" : "worldEdges/73977",
"_from" : "worldVertices/capital-yamoussoukro",
"_to" : "worldVertices/country-cote-d-ivoire",
"_rev" : "_iXQt22y--B",
"type" : "is-in"
},
{
"_key" : "73979",
"_id" : "worldEdges/73979",
"_from" : "worldVertices/capital-yaounde",
"_to" : "worldVertices/country-cameroon",
"_rev" : "_iXQt22y--C",
"type" : "is-in"
},
{
"_key" : "73981",
"_id" : "worldEdges/73981",
"_from" : "worldVertices/capital-zagreb",
"_to" : "worldVertices/country-croatia",
"_rev" : "_iXQt22y--D",
"type" : "is-in"
}
]
Social Graph
The social
graph is a set of persons and their relations. The graph has
female
and male
persons as vertices in two vertex collections.
The edges are their connections and stored in the relation
edge collection.
Example of how to create the graph, inspect its vertices and edges, and delete it again:
var examples = require("@arangodb/graph-examples/example-graph");
var graph = examples.loadGraph("social");
db.female.toArray()
db.male.toArray()
db.relation.toArray()
examples.dropGraph("social");
[
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_iXQt29e---",
"name" : "Alice"
},
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_iXQt29i--_",
"name" : "Diana"
}
]
[
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_iXQt29e--_",
"name" : "Bob"
},
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_iXQt29i---",
"name" : "Charly"
}
]
[
{
"_key" : "74318",
"_id" : "relation/74318",
"_from" : "female/alice",
"_to" : "male/bob",
"_rev" : "_iXQt29i--A",
"type" : "married",
"vertex" : "alice"
},
{
"_key" : "74320",
"_id" : "relation/74320",
"_from" : "female/alice",
"_to" : "male/charly",
"_rev" : "_iXQt29i--B",
"type" : "friend",
"vertex" : "alice"
},
{
"_key" : "74322",
"_id" : "relation/74322",
"_from" : "male/charly",
"_to" : "female/diana",
"_rev" : "_iXQt29i--C",
"type" : "married",
"vertex" : "charly"
},
{
"_key" : "74324",
"_id" : "relation/74324",
"_from" : "male/bob",
"_to" : "female/diana",
"_rev" : "_iXQt29i--D",
"type" : "friend",
"vertex" : "bob"
}
]
City Graph
The routeplanner
graph is a set of european cities and their fictional
traveling distances as connections. The graph has the cities as vertices in
multiple vertex collections (germanCity
and frenchCity
). The edges are their
interconnections in several edge collections (frenchHighway
, germanHighway
,
internationalHighway
).
Example of how to create the graph, inspect its edges and vertices, and delete it again:
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("routeplanner");
db.frenchCity.toArray();
db.germanCity.toArray();
db.germanHighway.toArray();
db.frenchHighway.toArray();
db.internationalHighway.toArray();
examples.dropGraph("routeplanner");
[
{
"_key" : "Lyon",
"_id" : "frenchCity/Lyon",
"_rev" : "_iXQt3-S--_",
"population" : 80000,
"isCapital" : false,
"geometry" : {
"type" : "Point",
"coordinates" : [
4.84,
45.76
]
}
},
{
"_key" : "Paris",
"_id" : "frenchCity/Paris",
"_rev" : "_iXQt3-S--A",
"population" : 4000000,
"isCapital" : true,
"geometry" : {
"type" : "Point",
"coordinates" : [
2.3508,
48.8567
]
}
}
]
[
{
"_key" : "Berlin",
"_id" : "germanCity/Berlin",
"_rev" : "_iXQt3-O---",
"population" : 3000000,
"isCapital" : true,
"geometry" : {
"type" : "Point",
"coordinates" : [
13.3833,
52.5167
]
}
},
{
"_key" : "Cologne",
"_id" : "germanCity/Cologne",
"_rev" : "_iXQt3-O--_",
"population" : 1000000,
"isCapital" : false,
"geometry" : {
"type" : "Point",
"coordinates" : [
6.9528,
50.9364
]
}
},
{
"_key" : "Hamburg",
"_id" : "germanCity/Hamburg",
"_rev" : "_iXQt3-S---",
"population" : 1000000,
"isCapital" : false,
"geometry" : {
"type" : "Point",
"coordinates" : [
10.0014,
53.5653
]
}
}
]
[
{
"_key" : "74407",
"_id" : "germanHighway/74407",
"_from" : "germanCity/Berlin",
"_to" : "germanCity/Cologne",
"_rev" : "_iXQt3-W--_",
"distance" : 850
},
{
"_key" : "74409",
"_id" : "germanHighway/74409",
"_from" : "germanCity/Berlin",
"_to" : "germanCity/Hamburg",
"_rev" : "_iXQt3-a---",
"distance" : 400
},
{
"_key" : "74411",
"_id" : "germanHighway/74411",
"_from" : "germanCity/Hamburg",
"_to" : "germanCity/Cologne",
"_rev" : "_iXQt3-a--_",
"distance" : 500
}
]
[
{
"_key" : "74413",
"_id" : "frenchHighway/74413",
"_from" : "frenchCity/Paris",
"_to" : "frenchCity/Lyon",
"_rev" : "_iXQt3-a--A",
"distance" : 550
}
]
[
{
"_key" : "74415",
"_id" : "internationalHighway/74415",
"_from" : "germanCity/Berlin",
"_to" : "frenchCity/Lyon",
"_rev" : "_iXQt3-a--B",
"distance" : 1100
},
{
"_key" : "74417",
"_id" : "internationalHighway/74417",
"_from" : "germanCity/Berlin",
"_to" : "frenchCity/Paris",
"_rev" : "_iXQt3-e---",
"distance" : 1200
},
{
"_key" : "74419",
"_id" : "internationalHighway/74419",
"_from" : "germanCity/Hamburg",
"_to" : "frenchCity/Paris",
"_rev" : "_iXQt3-e--_",
"distance" : 900
},
{
"_key" : "74421",
"_id" : "internationalHighway/74421",
"_from" : "germanCity/Hamburg",
"_to" : "frenchCity/Lyon",
"_rev" : "_iXQt3-e--A",
"distance" : 1300
},
{
"_key" : "74423",
"_id" : "internationalHighway/74423",
"_from" : "germanCity/Cologne",
"_to" : "frenchCity/Lyon",
"_rev" : "_iXQt3-e--B",
"distance" : 700
},
{
"_key" : "74425",
"_id" : "internationalHighway/74425",
"_from" : "germanCity/Cologne",
"_to" : "frenchCity/Paris",
"_rev" : "_iXQt3-e--C",
"distance" : 550
}
]
Connected Components Graph
A small example graph comprised of components
(vertices) and connections
(edges). Good for trying out graph algorithms such as Weakly Connected
Components (WCC).
var examples = require("@arangodb/graph-examples/example-graph");
var g = examples.loadGraph("connectedComponentsGraph");
db.components.toArray();
db.connections.toArray();
examples.dropGraph("connectedComponentsGraph");
[
{
"_key" : "A1",
"_id" : "components/A1",
"_rev" : "_iXQt3B----"
},
{
"_key" : "A2",
"_id" : "components/A2",
"_rev" : "_iXQt3B---_"
},
{
"_key" : "A3",
"_id" : "components/A3",
"_rev" : "_iXQt3B---A"
},
{
"_key" : "A4",
"_id" : "components/A4",
"_rev" : "_iXQt3BC---"
},
{
"_key" : "B1",
"_id" : "components/B1",
"_rev" : "_iXQt3BC--_"
},
{
"_key" : "B3",
"_id" : "components/B3",
"_rev" : "_iXQt3BC--A"
},
{
"_key" : "B2",
"_id" : "components/B2",
"_rev" : "_iXQt3BC--B"
},
{
"_key" : "B4",
"_id" : "components/B4",
"_rev" : "_iXQt3BC--C"
},
{
"_key" : "B6",
"_id" : "components/B6",
"_rev" : "_iXQt3BG---"
},
{
"_key" : "B5",
"_id" : "components/B5",
"_rev" : "_iXQt3BG--_"
},
{
"_key" : "B7",
"_id" : "components/B7",
"_rev" : "_iXQt3BG--A"
},
{
"_key" : "B8",
"_id" : "components/B8",
"_rev" : "_iXQt3BG--B"
},
{
"_key" : "B9",
"_id" : "components/B9",
"_rev" : "_iXQt3BG--C"
},
{
"_key" : "B10",
"_id" : "components/B10",
"_rev" : "_iXQt3BG--D"
},
{
"_key" : "B19",
"_id" : "components/B19",
"_rev" : "_iXQt3BK---"
},
{
"_key" : "B11",
"_id" : "components/B11",
"_rev" : "_iXQt3BK--_"
},
{
"_key" : "B12",
"_id" : "components/B12",
"_rev" : "_iXQt3BK--A"
},
{
"_key" : "B13",
"_id" : "components/B13",
"_rev" : "_iXQt3BK--B"
},
{
"_key" : "B20",
"_id" : "components/B20",
"_rev" : "_iXQt3BO---"
},
{
"_key" : "B14",
"_id" : "components/B14",
"_rev" : "_iXQt3BO--_"
},
{
"_key" : "B15",
"_id" : "components/B15",
"_rev" : "_iXQt3BO--A"
},
{
"_key" : "B16",
"_id" : "components/B16",
"_rev" : "_iXQt3BO--B"
},
{
"_key" : "B17",
"_id" : "components/B17",
"_rev" : "_iXQt3BO--C"
},
{
"_key" : "B18",
"_id" : "components/B18",
"_rev" : "_iXQt3BS---"
},
{
"_key" : "B21",
"_id" : "components/B21",
"_rev" : "_iXQt3BS--_"
},
{
"_key" : "B22",
"_id" : "components/B22",
"_rev" : "_iXQt3BS--A"
},
{
"_key" : "C1",
"_id" : "components/C1",
"_rev" : "_iXQt3BW---"
},
{
"_key" : "C2",
"_id" : "components/C2",
"_rev" : "_iXQt3BW--_"
},
{
"_key" : "C3",
"_id" : "components/C3",
"_rev" : "_iXQt3BW--A"
},
{
"_key" : "C4",
"_id" : "components/C4",
"_rev" : "_iXQt3BW--B"
},
{
"_key" : "C5",
"_id" : "components/C5",
"_rev" : "_iXQt3BW--C"
},
{
"_key" : "C7",
"_id" : "components/C7",
"_rev" : "_iXQt3Ba---"
},
{
"_key" : "C6",
"_id" : "components/C6",
"_rev" : "_iXQt3Ba--_"
},
{
"_key" : "C8",
"_id" : "components/C8",
"_rev" : "_iXQt3Ba--A"
},
{
"_key" : "C9",
"_id" : "components/C9",
"_rev" : "_iXQt3Ba--B"
},
{
"_key" : "C10",
"_id" : "components/C10",
"_rev" : "_iXQt3Be---"
}
]
[
{
"_key" : "74538",
"_id" : "connections/74538",
"_from" : "components/A1",
"_to" : "components/A2",
"_rev" : "_iXQt3Bm---"
},
{
"_key" : "74540",
"_id" : "connections/74540",
"_from" : "components/A2",
"_to" : "components/A3",
"_rev" : "_iXQt3Bq---"
},
{
"_key" : "74542",
"_id" : "connections/74542",
"_from" : "components/A3",
"_to" : "components/A4",
"_rev" : "_iXQt3Bu---"
},
{
"_key" : "74544",
"_id" : "connections/74544",
"_from" : "components/A4",
"_to" : "components/A1",
"_rev" : "_iXQt3Bu--_"
},
{
"_key" : "74546",
"_id" : "connections/74546",
"_from" : "components/B1",
"_to" : "components/B3",
"_rev" : "_iXQt3Bu--A"
},
{
"_key" : "74548",
"_id" : "connections/74548",
"_from" : "components/B2",
"_to" : "components/B4",
"_rev" : "_iXQt3Bu--B"
},
{
"_key" : "74550",
"_id" : "connections/74550",
"_from" : "components/B3",
"_to" : "components/B6",
"_rev" : "_iXQt3By---"
},
{
"_key" : "74552",
"_id" : "connections/74552",
"_from" : "components/B4",
"_to" : "components/B3",
"_rev" : "_iXQt3By--_"
},
{
"_key" : "74554",
"_id" : "connections/74554",
"_from" : "components/B4",
"_to" : "components/B5",
"_rev" : "_iXQt3By--A"
},
{
"_key" : "74556",
"_id" : "connections/74556",
"_from" : "components/B6",
"_to" : "components/B7",
"_rev" : "_iXQt3By--B"
},
{
"_key" : "74558",
"_id" : "connections/74558",
"_from" : "components/B7",
"_to" : "components/B8",
"_rev" : "_iXQt3B2---"
},
{
"_key" : "74560",
"_id" : "connections/74560",
"_from" : "components/B7",
"_to" : "components/B9",
"_rev" : "_iXQt3B2--_"
},
{
"_key" : "74562",
"_id" : "connections/74562",
"_from" : "components/B7",
"_to" : "components/B10",
"_rev" : "_iXQt3B2--A"
},
{
"_key" : "74564",
"_id" : "connections/74564",
"_from" : "components/B7",
"_to" : "components/B19",
"_rev" : "_iXQt3B2--B"
},
{
"_key" : "74566",
"_id" : "connections/74566",
"_from" : "components/B11",
"_to" : "components/B10",
"_rev" : "_iXQt3B2--C"
},
{
"_key" : "74568",
"_id" : "connections/74568",
"_from" : "components/B12",
"_to" : "components/B11",
"_rev" : "_iXQt3B6---"
},
{
"_key" : "74570",
"_id" : "connections/74570",
"_from" : "components/B13",
"_to" : "components/B12",
"_rev" : "_iXQt3B6--_"
},
{
"_key" : "74572",
"_id" : "connections/74572",
"_from" : "components/B13",
"_to" : "components/B20",
"_rev" : "_iXQt3B6--A"
},
{
"_key" : "74574",
"_id" : "connections/74574",
"_from" : "components/B14",
"_to" : "components/B13",
"_rev" : "_iXQt3B6--B"
},
{
"_key" : "74576",
"_id" : "connections/74576",
"_from" : "components/B15",
"_to" : "components/B14",
"_rev" : "_iXQt3C----"
},
{
"_key" : "74578",
"_id" : "connections/74578",
"_from" : "components/B15",
"_to" : "components/B16",
"_rev" : "_iXQt3C---_"
},
{
"_key" : "74580",
"_id" : "connections/74580",
"_from" : "components/B17",
"_to" : "components/B15",
"_rev" : "_iXQt3C---A"
},
{
"_key" : "74582",
"_id" : "connections/74582",
"_from" : "components/B17",
"_to" : "components/B18",
"_rev" : "_iXQt3C---B"
},
{
"_key" : "74584",
"_id" : "connections/74584",
"_from" : "components/B19",
"_to" : "components/B17",
"_rev" : "_iXQt3C---C"
},
{
"_key" : "74586",
"_id" : "connections/74586",
"_from" : "components/B20",
"_to" : "components/B21",
"_rev" : "_iXQt3CC---"
},
{
"_key" : "74588",
"_id" : "connections/74588",
"_from" : "components/B20",
"_to" : "components/B22",
"_rev" : "_iXQt3CC--_"
},
{
"_key" : "74590",
"_id" : "connections/74590",
"_from" : "components/C1",
"_to" : "components/C2",
"_rev" : "_iXQt3CC--A"
},
{
"_key" : "74592",
"_id" : "connections/74592",
"_from" : "components/C2",
"_to" : "components/C3",
"_rev" : "_iXQt3CC--B"
},
{
"_key" : "74594",
"_id" : "connections/74594",
"_from" : "components/C3",
"_to" : "components/C4",
"_rev" : "_iXQt3CG---"
},
{
"_key" : "74596",
"_id" : "connections/74596",
"_from" : "components/C4",
"_to" : "components/C5",
"_rev" : "_iXQt3CG--_"
},
{
"_key" : "74598",
"_id" : "connections/74598",
"_from" : "components/C4",
"_to" : "components/C7",
"_rev" : "_iXQt3CG--A"
},
{
"_key" : "74600",
"_id" : "connections/74600",
"_from" : "components/C5",
"_to" : "components/C6",
"_rev" : "_iXQt3CG--B"
},
{
"_key" : "74602",
"_id" : "connections/74602",
"_from" : "components/C5",
"_to" : "components/C7",
"_rev" : "_iXQt3CG--C"
},
{
"_key" : "74604",
"_id" : "connections/74604",
"_from" : "components/C7",
"_to" : "components/C8",
"_rev" : "_iXQt3CK---"
},
{
"_key" : "74606",
"_id" : "connections/74606",
"_from" : "components/C8",
"_to" : "components/C9",
"_rev" : "_iXQt3CK--_"
},
{
"_key" : "74608",
"_id" : "connections/74608",
"_from" : "components/C8",
"_to" : "components/C10",
"_rev" : "_iXQt3CK--A"
}
]
Higher volume graph examples
All of the above examples are rather small to make them easy to comprehend and demonstrate how graphs work in ArangoDB. However, there are several, freely available datasets on the web that are a lot bigger.
You can find a collection of datasets with import scripts on GitHub .
Another huge graph is the Pokec social network from Slovakia. See this blogpost for details and an import script.