Graph¶
-
class
pyArango.graph.
Graph
(database, jsonInit)[source]¶ The class from witch all your graph types must derive
-
createEdge
(collectionName, _fromId, _toId, edgeAttributes, waitForSync=False)[source]¶ creates an edge between two documents
-
createVertex
(collectionName, docAttributes, waitForSync=False)[source]¶ adds a vertex to the graph and returns it
-
deleteVertex
(document, waitForSync=False)[source]¶ deletes a vertex from the graph as well as al linked edges
-
link
(definition, doc1, doc2, edgeAttributes, waitForSync=False)[source]¶ A shorthand for createEdge that takes two documents as input
-
traverse
(startVertex, **kwargs)[source]¶ Traversal! see: https://docs.arangodb.com/HttpTraversal/README.html for a full list of the possible kwargs. The function must have as argument either: direction = “outbout”/”any”/”inbound” or expander = “custom JS (see arangodb’s doc)”. The function can’t have both ‘direction’ and ‘expander’ as arguments.
-