1
0
Fork 0
arangodb/Documentation/Examples/generalGraphCreateGraphSing...

7 lines
344 B
Plaintext

arangosh> var graph_module = require("org/arangodb/general-graph");
arangosh> var edgeDefinitions = [ { collection: "edges", "from": [ "vertices" ], "to" : [ "vertices" ] } ];
arangosh> graph = graph_module._create("myGraph", edgeDefinitions);
[ Graph myGraph EdgeDefinitions: [
"edges: [vertices] -> [vertices]"
] VertexCollections: [ ] ]