mirror of https://gitee.com/bigwinds/arangodb
178 lines
3.7 KiB
Plaintext
178 lines
3.7 KiB
Plaintext
arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
|
|
arangosh> var graph = examples.loadGraph("traversalGraph");
|
|
arangosh> db.circles.toArray();
|
|
[
|
|
{
|
|
"_key" : "I",
|
|
"_id" : "circles/I",
|
|
"_rev" : "_YT2FO_e--_",
|
|
"label" : "9"
|
|
},
|
|
{
|
|
"_key" : "G",
|
|
"_id" : "circles/G",
|
|
"_rev" : "_YT2FO_a--B",
|
|
"label" : "7"
|
|
},
|
|
{
|
|
"_key" : "F",
|
|
"_id" : "circles/F",
|
|
"_rev" : "_YT2FO_a--_",
|
|
"label" : "6"
|
|
},
|
|
{
|
|
"_key" : "A",
|
|
"_id" : "circles/A",
|
|
"_rev" : "_YT2FO_S--_",
|
|
"label" : "1"
|
|
},
|
|
{
|
|
"_key" : "E",
|
|
"_id" : "circles/E",
|
|
"_rev" : "_YT2FO_W--B",
|
|
"label" : "5"
|
|
},
|
|
{
|
|
"_key" : "C",
|
|
"_id" : "circles/C",
|
|
"_rev" : "_YT2FO_S--D",
|
|
"label" : "3"
|
|
},
|
|
{
|
|
"_key" : "D",
|
|
"_id" : "circles/D",
|
|
"_rev" : "_YT2FO_W--_",
|
|
"label" : "4"
|
|
},
|
|
{
|
|
"_key" : "J",
|
|
"_id" : "circles/J",
|
|
"_rev" : "_YT2FO_e--B",
|
|
"label" : "10"
|
|
},
|
|
{
|
|
"_key" : "B",
|
|
"_id" : "circles/B",
|
|
"_rev" : "_YT2FO_S--B",
|
|
"label" : "2"
|
|
},
|
|
{
|
|
"_key" : "H",
|
|
"_id" : "circles/H",
|
|
"_rev" : "_YT2FO_a--D",
|
|
"label" : "8"
|
|
},
|
|
{
|
|
"_key" : "K",
|
|
"_id" : "circles/K",
|
|
"_rev" : "_YT2FO_e--D",
|
|
"label" : "11"
|
|
}
|
|
]
|
|
arangosh> db.edges.toArray();
|
|
[
|
|
{
|
|
"_key" : "98575",
|
|
"_id" : "edges/98575",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/C",
|
|
"_rev" : "_YT2FO_i--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blarg"
|
|
},
|
|
{
|
|
"_key" : "98581",
|
|
"_id" : "edges/98581",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/E",
|
|
"_rev" : "_YT2FO_m--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blub"
|
|
},
|
|
{
|
|
"_key" : "98584",
|
|
"_id" : "edges/98584",
|
|
"_from" : "circles/E",
|
|
"_to" : "circles/F",
|
|
"_rev" : "_YT2FO_m--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_schubi"
|
|
},
|
|
{
|
|
"_key" : "98599",
|
|
"_id" : "edges/98599",
|
|
"_from" : "circles/J",
|
|
"_to" : "circles/K",
|
|
"_rev" : "_YT2FO_u--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zup"
|
|
},
|
|
{
|
|
"_key" : "98596",
|
|
"_id" : "edges/98596",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/J",
|
|
"_rev" : "_YT2FO_u--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zip"
|
|
},
|
|
{
|
|
"_key" : "98593",
|
|
"_id" : "edges/98593",
|
|
"_from" : "circles/H",
|
|
"_to" : "circles/I",
|
|
"_rev" : "_YT2FO_q--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blub"
|
|
},
|
|
{
|
|
"_key" : "98587",
|
|
"_id" : "edges/98587",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/G",
|
|
"_rev" : "_YT2FO_q--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_foo"
|
|
},
|
|
{
|
|
"_key" : "98571",
|
|
"_id" : "edges/98571",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/B",
|
|
"_rev" : "_YT2FO_i--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_bar"
|
|
},
|
|
{
|
|
"_key" : "98578",
|
|
"_id" : "edges/98578",
|
|
"_from" : "circles/C",
|
|
"_to" : "circles/D",
|
|
"_rev" : "_YT2FO_m--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blorg"
|
|
},
|
|
{
|
|
"_key" : "98590",
|
|
"_id" : "edges/98590",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/H",
|
|
"_rev" : "_YT2FO_q--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blob"
|
|
}
|
|
]
|
|
arangosh> print("once you don't need them anymore, clean them up:");
|
|
once you don't need them anymore, clean them up:
|
|
arangosh> examples.dropGraph("traversalGraph");
|