arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
arangosh> var g = examples.loadGraph("knows_graph");
arangosh> db.persons.toArray()
[
{
"name" : "Charlie",
"_id" : "persons/charlie",
"_rev" : "2508593874",
"_key" : "charlie"
},
{
"name" : "Bob",
"_id" : "persons/bob",
"_rev" : "2508331730",
"_key" : "bob"
},
{
"name" : "Eve",
"_id" : "persons/eve",
"_rev" : "2508987090",
"_key" : "eve"
},
{
"name" : "Dave",
"_id" : "persons/dave",
"_rev" : "2508790482",
"_key" : "dave"
},
{
"name" : "Alice",
"_id" : "persons/alice",
"_rev" : "2508135122",
"_key" : "alice"
}
]
arangosh> db.knows.toArray();
[
{
"_id" : "knows/2509642450",
"_rev" : "2509642450",
"_key" : "2509642450",
"_from" : "persons/bob",
"_to" : "persons/dave"
},
{
"_id" : "knows/2509839058",
"_rev" : "2509839058",
"_key" : "2509839058",
"_from" : "persons/eve",
"_to" : "persons/alice"
},
{
"_id" : "knows/2510035666",
"_rev" : "2510035666",
"_key" : "2510035666",
"_from" : "persons/eve",
"_to" : "persons/bob"
},
{
"_id" : "knows/2509445842",
"_rev" : "2509445842",
"_key" : "2509445842",
"_from" : "persons/bob",
"_to" : "persons/charlie"
},
{
"_id" : "knows/2509249234",
"_rev" : "2509249234",
"_key" : "2509249234",
"_from" : "persons/alice",
"_to" : "persons/bob"
}
]
arangosh> examples.dropGraph("knows_graph");
true