Coreviews
- class nx_arangodb.classes.coreviews.ArangoAdjacencyView(d)[source]
The ArangoAdjacencyView class is an experimental subclass of the AdjacencyView class.
Contrary to the original AdjacencyView class, the ArangoAdjacencyView is writable to allow for bulk updates to the graph in the DB.
- update(data)[source]
Update a set of edges within the graph.
The benefit of this method is that it allows for bulk API updates, as opposed to G.add_edges_from, which currently makes one API request per edge.
Example
>>> G = nxadb.Graph(name="MyGraph") >>> G.adj.update( { 'node/1': { 'node/2': {"node_to_node/1", "foo": "bar"}, 'node/3': {"node_to_node/2", "foo": "baz"}, ... }, ... })