arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
arangosh> var graph = examples.loadGraph("social");
arangosh> db.female.toArray()
[
{
"_key" : "diana",
"_id" : "female/diana",
"_rev" : "_WBDpsU6--_",
"name" : "Diana"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_WBDpsU2--_",
"name" : "Alice"
}
]
arangosh> db.male.toArray()
[
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_WBDpsU2--B",
"name" : "Bob"
},
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_WBDpsU2--D",
"name" : "Charly"
}
]
arangosh> db.relation.toArray()
[
{
"_key" : "39704",
"_id" : "relation/39704",
"_from" : "female/alice",
"_to" : "male/bob",
"_rev" : "_WBDpsU6--B",
"type" : "married",
"vertex" : "alice"
},
{
"_key" : "39708",
"_id" : "relation/39708",
"_from" : "female/alice",
"_to" : "male/charly",
"_rev" : "_WBDpsU6--D",
"type" : "friend",
"vertex" : "alice"
},
{
"_key" : "39714",
"_id" : "relation/39714",
"_from" : "male/bob",
"_to" : "female/diana",
"_rev" : "_WBDpsV---B",
"type" : "friend",
"vertex" : "bob"
},
{
"_key" : "39711",
"_id" : "relation/39711",
"_from" : "male/charly",
"_to" : "female/diana",
"_rev" : "_WBDpsV---_",
"type" : "married",
"vertex" : "charly"
}
]
arangosh> examples.dropGraph("social");
true