1
0
Fork 0
arangodb/Documentation/Books/Users/Blueprint-Graphs
Thomas Schmidts 7b3baba2e9 Added glossary to the documentation. Also linked the glossary keywords to the documentation 2014-08-05 15:49:21 +02:00
..
EdgeMethods.mdpp merged for revert 2014-06-04 17:19:34 +02:00
GraphConstructor.mdpp merged for revert 2014-06-04 17:19:34 +02:00
README.mdpp Added glossary to the documentation. Also linked the glossary keywords to the documentation 2014-08-05 15:49:21 +02:00
VertexMethods.mdpp merged for revert 2014-06-04 17:19:34 +02:00

README.mdpp

!CHAPTER Graphs

**Warning: Deprecated**

This module is deprecated and will be removed soon.
Please use [General Graphs](../General-Graphs/README.md) instead.

A Graph consists of vertices and edges. The vertex collection contains the
documents forming the vertices. The [edge collection](../Glossary/README.html#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")

<!--
@verbinclude graph25
-->

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")

<!--
@verbinclude graph26
-->
It is, however, impossible to use different vertices with the same edges. Edges
are tied to the vertices.