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" : "_XWq5ikK--F",
|
|
"label" : "9"
|
|
},
|
|
{
|
|
"_key" : "G",
|
|
"_id" : "circles/G",
|
|
"_rev" : "_XWq5ikK--B",
|
|
"label" : "7"
|
|
},
|
|
{
|
|
"_key" : "F",
|
|
"_id" : "circles/F",
|
|
"_rev" : "_XWq5ikK--_",
|
|
"label" : "6"
|
|
},
|
|
{
|
|
"_key" : "A",
|
|
"_id" : "circles/A",
|
|
"_rev" : "_XWq5ikG--_",
|
|
"label" : "1"
|
|
},
|
|
{
|
|
"_key" : "E",
|
|
"_id" : "circles/E",
|
|
"_rev" : "_XWq5ikG--H",
|
|
"label" : "5"
|
|
},
|
|
{
|
|
"_key" : "C",
|
|
"_id" : "circles/C",
|
|
"_rev" : "_XWq5ikG--D",
|
|
"label" : "3"
|
|
},
|
|
{
|
|
"_key" : "D",
|
|
"_id" : "circles/D",
|
|
"_rev" : "_XWq5ikG--F",
|
|
"label" : "4"
|
|
},
|
|
{
|
|
"_key" : "J",
|
|
"_id" : "circles/J",
|
|
"_rev" : "_XWq5ikO--_",
|
|
"label" : "10"
|
|
},
|
|
{
|
|
"_key" : "B",
|
|
"_id" : "circles/B",
|
|
"_rev" : "_XWq5ikG--B",
|
|
"label" : "2"
|
|
},
|
|
{
|
|
"_key" : "H",
|
|
"_id" : "circles/H",
|
|
"_rev" : "_XWq5ikK--D",
|
|
"label" : "8"
|
|
},
|
|
{
|
|
"_key" : "K",
|
|
"_id" : "circles/K",
|
|
"_rev" : "_XWq5ikO--B",
|
|
"label" : "11"
|
|
}
|
|
]
|
|
arangosh> db.edges.toArray();
|
|
[
|
|
{
|
|
"_key" : "97943",
|
|
"_id" : "edges/97943",
|
|
"_from" : "circles/J",
|
|
"_to" : "circles/K",
|
|
"_rev" : "_XWq5ikW--F",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zup"
|
|
},
|
|
{
|
|
"_key" : "97931",
|
|
"_id" : "edges/97931",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/G",
|
|
"_rev" : "_XWq5ikS--F",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_foo"
|
|
},
|
|
{
|
|
"_key" : "97937",
|
|
"_id" : "edges/97937",
|
|
"_from" : "circles/H",
|
|
"_to" : "circles/I",
|
|
"_rev" : "_XWq5ikW--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blub"
|
|
},
|
|
{
|
|
"_key" : "97915",
|
|
"_id" : "edges/97915",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/B",
|
|
"_rev" : "_XWq5ikO--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_bar"
|
|
},
|
|
{
|
|
"_key" : "97925",
|
|
"_id" : "edges/97925",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/E",
|
|
"_rev" : "_XWq5ikS--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blub"
|
|
},
|
|
{
|
|
"_key" : "97940",
|
|
"_id" : "edges/97940",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/J",
|
|
"_rev" : "_XWq5ikW--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zip"
|
|
},
|
|
{
|
|
"_key" : "97922",
|
|
"_id" : "edges/97922",
|
|
"_from" : "circles/C",
|
|
"_to" : "circles/D",
|
|
"_rev" : "_XWq5ikS--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blorg"
|
|
},
|
|
{
|
|
"_key" : "97934",
|
|
"_id" : "edges/97934",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/H",
|
|
"_rev" : "_XWq5ikW--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blob"
|
|
},
|
|
{
|
|
"_key" : "97919",
|
|
"_id" : "edges/97919",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/C",
|
|
"_rev" : "_XWq5ikO--F",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blarg"
|
|
},
|
|
{
|
|
"_key" : "97928",
|
|
"_id" : "edges/97928",
|
|
"_from" : "circles/E",
|
|
"_to" : "circles/F",
|
|
"_rev" : "_XWq5ikS--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_schubi"
|
|
}
|
|
]
|
|
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");
|