1
0
Fork 0
arangodb/Documentation/Books/Users/Blueprint-Graphs
Michael Hackstein 44a3dd1db1 Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
..
EdgeMethods.md Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
EdgeMethods.mdpp Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
GraphConstructor.md Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
GraphConstructor.mdpp Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
README.md Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
README.mdpp Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
VertexMethods.md Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00
VertexMethods.mdpp Added start of documentation move to gitbooks in general graphs 2014-06-04 13:06:31 +02:00

README.md

Graphs

A Graph consists of vertices and edges. The vertex collection contains the documents forming the vertices. The edge collection contains the documents forming the edges. Together both collections form a graph. Assume that the vertex collection is called vertices and the edges collection edges, then you can build a graph using the Graph constructor.

arango> var Graph = require("org/arangodb/graph").Graph;

arango> g1 = new Graph("graph", "vertices", "edges");
Graph("vertices", "edges")

It is possible to use different edges with the same vertices. For instance, to build a new graph with a different edge collection use

arango> var Graph = require("org/arangodb/graph").Graph;

arango> g2 = new Graph("graph", "vertices", "alternativeEdges");
Graph("vertices", "alternativeEdges")

It is, however, impossible to use different vertices with the same edges. Edges are tied to the vertices.