From 6bc51625b717bc16a6bedf06c96600cae1642352 Mon Sep 17 00:00:00 2001
From: "Lucas S. Vieira" Represents an ArangoDB Graph. Graph constructor. Returns a string representation of graph object. Creates a new edge in the collection.<br>
-Within the attributes the edge has to contain a _from and _to value referencing to valid vertices in the graph.
: bool
: bool
-
public
- addEdge(string $collection[, array<string|int, mixed> $attributes = [] ][, bool $waitForSync = true ][, bool $returnNew = false ]) : Edge|false
+ addEdge(string $collection[, array<string|int, mixed> $attributes = [] ][, bool $waitForSync = true ][, bool $returnNew = false ]) : bool
Furthermore the edge has to be valid in the definition of the used.
-The object attributes to be stored. Must contains '_to' and '_from' keys.
+The object attributes to be stored. Must contain '_to' and '_from' keys.
A Edge object if edge exists. False if no graph with this name could be found True if Edge object exists. False if no graph with this name could be found
+
or this collection is not part of the graph or one of the vertices ('_to' or '_from') does not exist.
Adds an edge definition to graph.
@@ -853,9 +853,9 @@Adds a vertex to graph.
@@ -949,9 +949,9 @@Adds a vertex collection to the set of orphan collections of the graph.
@@ -1015,9 +1015,9 @@Removes a graph from server, if possible.
@@ -1084,9 +1084,9 @@Drops an edge from graph.
@@ -1180,12 +1180,12 @@Remove one edge definition from the graph.<br> +
Remove one edge definition from the graph<br> This will only remove the edge collection, the vertex collections remain untouched and can still be used in your queries.
@@ -1264,9 +1264,9 @@Drops a vertex from graph.
@@ -1360,12 +1360,12 @@Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other graph.<br> +
Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other graph<br> It can only remove vertex collections that are no longer part of edge definitions,<br> if they are used in edge definitions you are required to modify those first.
@@ -1435,9 +1435,9 @@Returns an edge document.
@@ -1513,9 +1513,9 @@Return all edge definitions of graph.
@@ -1550,9 +1550,9 @@Returns the graph ID.
@@ -1587,9 +1587,9 @@Returns the graph key.
@@ -1624,9 +1624,9 @@Returns the minimal replication factor used for every new collection in the graph.
@@ -1661,9 +1661,9 @@Gets the graph name.
@@ -1698,9 +1698,9 @@Returns the number of shards that is used for every collection within this graph.
@@ -1735,9 +1735,9 @@Returns the orphan collections in the graph.
@@ -1772,9 +1772,9 @@Returns the replication factor used when initially creating collections for this graph.
@@ -1809,9 +1809,9 @@Gets the graph revision.
@@ -1846,9 +1846,9 @@Gets a vertex from the given collection.
@@ -1924,9 +1924,9 @@Lists all vertex collections within this graph.
@@ -1976,9 +1976,9 @@Returns true if is a new graph.
@@ -2013,9 +2013,9 @@If this graph is a smartGraph.
@@ -2050,9 +2050,9 @@Return a JSON representation of graph attributes.
@@ -2087,9 +2087,9 @@Save the Graph on server, if possible.
@@ -2143,9 +2143,9 @@Returns a array representation of graph.
@@ -2180,16 +2180,16 @@Returns a graph traversal.
public
- traversal(Vertex $vertex[, string $direction = Traversal::GRAPH_DIRECTION_ANY ][, int $depth = 0 ]) : TraversalCursor
+ traversal(Vertex $vertex[, string $direction = Traversal::GRAPH_DIRECTION_ANY ][, int $depth = 0 ]) : Traversal