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" : "_YOn1Fju--J",
|
|
"label" : "9"
|
|
},
|
|
{
|
|
"_key" : "G",
|
|
"_id" : "circles/G",
|
|
"_rev" : "_YOn1Fju--F",
|
|
"label" : "7"
|
|
},
|
|
{
|
|
"_key" : "F",
|
|
"_id" : "circles/F",
|
|
"_rev" : "_YOn1Fju--D",
|
|
"label" : "6"
|
|
},
|
|
{
|
|
"_key" : "A",
|
|
"_id" : "circles/A",
|
|
"_rev" : "_YOn1Fjq--_",
|
|
"label" : "1"
|
|
},
|
|
{
|
|
"_key" : "E",
|
|
"_id" : "circles/E",
|
|
"_rev" : "_YOn1Fju--B",
|
|
"label" : "5"
|
|
},
|
|
{
|
|
"_key" : "C",
|
|
"_id" : "circles/C",
|
|
"_rev" : "_YOn1Fjq--D",
|
|
"label" : "3"
|
|
},
|
|
{
|
|
"_key" : "D",
|
|
"_id" : "circles/D",
|
|
"_rev" : "_YOn1Fju--_",
|
|
"label" : "4"
|
|
},
|
|
{
|
|
"_key" : "J",
|
|
"_id" : "circles/J",
|
|
"_rev" : "_YOn1Fjy--_",
|
|
"label" : "10"
|
|
},
|
|
{
|
|
"_key" : "B",
|
|
"_id" : "circles/B",
|
|
"_rev" : "_YOn1Fjq--B",
|
|
"label" : "2"
|
|
},
|
|
{
|
|
"_key" : "H",
|
|
"_id" : "circles/H",
|
|
"_rev" : "_YOn1Fju--H",
|
|
"label" : "8"
|
|
},
|
|
{
|
|
"_key" : "K",
|
|
"_id" : "circles/K",
|
|
"_rev" : "_YOn1Fjy--B",
|
|
"label" : "11"
|
|
}
|
|
]
|
|
arangosh> db.edges.toArray();
|
|
[
|
|
{
|
|
"_key" : "98585",
|
|
"_id" : "edges/98585",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/J",
|
|
"_rev" : "_YOn1Fj2--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zip"
|
|
},
|
|
{
|
|
"_key" : "98573",
|
|
"_id" : "edges/98573",
|
|
"_from" : "circles/E",
|
|
"_to" : "circles/F",
|
|
"_rev" : "_YOn1Fjy--L",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_schubi"
|
|
},
|
|
{
|
|
"_key" : "98588",
|
|
"_id" : "edges/98588",
|
|
"_from" : "circles/J",
|
|
"_to" : "circles/K",
|
|
"_rev" : "_YOn1Fj2--F",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_zup"
|
|
},
|
|
{
|
|
"_key" : "98570",
|
|
"_id" : "edges/98570",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/E",
|
|
"_rev" : "_YOn1Fjy--J",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blub"
|
|
},
|
|
{
|
|
"_key" : "98582",
|
|
"_id" : "edges/98582",
|
|
"_from" : "circles/H",
|
|
"_to" : "circles/I",
|
|
"_rev" : "_YOn1Fj2--B",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blub"
|
|
},
|
|
{
|
|
"_key" : "98576",
|
|
"_id" : "edges/98576",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/G",
|
|
"_rev" : "_YOn1Fjy--N",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_foo"
|
|
},
|
|
{
|
|
"_key" : "98567",
|
|
"_id" : "edges/98567",
|
|
"_from" : "circles/C",
|
|
"_to" : "circles/D",
|
|
"_rev" : "_YOn1Fjy--H",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blorg"
|
|
},
|
|
{
|
|
"_key" : "98579",
|
|
"_id" : "edges/98579",
|
|
"_from" : "circles/G",
|
|
"_to" : "circles/H",
|
|
"_rev" : "_YOn1Fj2--_",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "right_blob"
|
|
},
|
|
{
|
|
"_key" : "98564",
|
|
"_id" : "edges/98564",
|
|
"_from" : "circles/B",
|
|
"_to" : "circles/C",
|
|
"_rev" : "_YOn1Fjy--F",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_blarg"
|
|
},
|
|
{
|
|
"_key" : "98560",
|
|
"_id" : "edges/98560",
|
|
"_from" : "circles/A",
|
|
"_to" : "circles/B",
|
|
"_rev" : "_YOn1Fjy--D",
|
|
"theFalse" : false,
|
|
"theTruth" : true,
|
|
"label" : "left_bar"
|
|
}
|
|
]
|
|
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");
|