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" : "_YQtD2AK--B",
"name" : "Diana"
},
{
"_key" : "alice",
"_id" : "female/alice",
"_rev" : "_YQtD2AG--_",
"name" : "Alice"
}
]
arangosh> db.male.toArray()
[
{
"_key" : "bob",
"_id" : "male/bob",
"_rev" : "_YQtD2AG--B",
"name" : "Bob"
},
{
"_key" : "charly",
"_id" : "male/charly",
"_rev" : "_YQtD2AK--_",
"name" : "Charly"
}
]
arangosh> db.relation.toArray()
[
{
"_key" : "131253",
"_id" : "relation/131253",
"_from" : "male/charly",
"_to" : "female/diana",
"_rev" : "_YQtD2AO--B",
"type" : "married",
"vertex" : "charly"
},
{
"_key" : "131250",
"_id" : "relation/131250",
"_from" : "female/alice",
"_to" : "male/charly",
"_rev" : "_YQtD2AO--_",
"type" : "friend",
"vertex" : "alice"
},
{
"_key" : "131256",
"_id" : "relation/131256",
"_from" : "male/bob",
"_to" : "female/diana",
"_rev" : "_YQtD2AO--D",
"type" : "friend",
"vertex" : "bob"
},
{
"_key" : "131246",
"_id" : "relation/131246",
"_from" : "female/alice",
"_to" : "male/bob",
"_rev" : "_YQtD2AK--D",
"type" : "married",
"vertex" : "alice"
}
]
arangosh> examples.dropGraph("social");