Skip to content

Commit 423a7b2

Browse files
committed
new: mirror_crud_to_nxcg docstring
1 parent 3c8cfe4 commit 423a7b2

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

nx_arangodb/classes/digraph.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ class DiGraph(Graph, nx.DiGraph):
131131
this operation is irreversible and will result in the loss of all data in
132132
the graph. NOTE: If set to True, Collection Indexes will also be lost.
133133
134+
mirror_crud_to_nxcg : bool (optional, default: False)
135+
Whether to mirror any CRUD operations performed on the NetworkX-ArangoDB Graph
136+
to the cached NetworkX-cuGraph Graph (if available). This allows you to maintain
137+
an up-to-date in-memory NetworkX-cuGraph graph while performing CRUD operations
138+
on the NetworkX-ArangoDB Graph. NOTE: The first time you perform a CRUD
139+
operation on the NetworkX-ArangoDB Graph with an existing NetworkX-cuGraph cache
140+
will require downtime to copy the NetworkX-cuGraph Graph from GPU memory to CPU
141+
memory. Subsequent CRUD operations will not require this downtime.
142+
134143
args: positional arguments for nx.Graph
135144
Additional arguments passed to nx.Graph.
136145

nx_arangodb/classes/graph.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ class Graph(nx.Graph):
165165
this operation is irreversible and will result in the loss of all data in
166166
the graph. NOTE: If set to True, Collection Indexes will also be lost.
167167
168+
mirror_crud_to_nxcg : bool (optional, default: False)
169+
Whether to mirror any CRUD operations performed on the NetworkX-ArangoDB Graph
170+
to the cached NetworkX-cuGraph Graph (if available). This allows you to maintain
171+
an up-to-date in-memory NetworkX-cuGraph graph while performing CRUD operations
172+
on the NetworkX-ArangoDB Graph. NOTE: The first time you perform a CRUD
173+
operation on the NetworkX-ArangoDB Graph with an existing NetworkX-cuGraph cache
174+
will require downtime to copy the NetworkX-cuGraph Graph from GPU memory to CPU
175+
memory. Subsequent CRUD operations will not require this downtime.
176+
168177
args: positional arguments for nx.Graph
169178
Additional arguments passed to nx.Graph.
170179

nx_arangodb/classes/multidigraph.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@ class MultiDiGraph(MultiGraph, DiGraph, nx.MultiDiGraph):
144144
this operation is irreversible and will result in the loss of all data in
145145
the graph. NOTE: If set to True, Collection Indexes will also be lost.
146146
147+
mirror_crud_to_nxcg : bool (optional, default: False)
148+
Whether to mirror any CRUD operations performed on the NetworkX-ArangoDB Graph
149+
to the cached NetworkX-cuGraph Graph (if available). This allows you to maintain
150+
an up-to-date in-memory NetworkX-cuGraph graph while performing CRUD operations
151+
on the NetworkX-ArangoDB Graph. NOTE: The first time you perform a CRUD
152+
operation on the NetworkX-ArangoDB Graph with an existing NetworkX-cuGraph cache
153+
will require downtime to copy the NetworkX-cuGraph Graph from GPU memory to CPU
154+
memory. Subsequent CRUD operations will not require this downtime.
155+
147156
args: positional arguments for nx.Graph
148157
Additional arguments passed to nx.Graph.
149158

nx_arangodb/classes/multigraph.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ class MultiGraph(Graph, nx.MultiGraph):
143143
this operation is irreversible and will result in the loss of all data in
144144
the graph. NOTE: If set to True, Collection Indexes will also be lost.
145145
146+
mirror_crud_to_nxcg : bool (optional, default: False)
147+
Whether to mirror any CRUD operations performed on the NetworkX-ArangoDB Graph
148+
to the cached NetworkX-cuGraph Graph (if available). This allows you to maintain
149+
an up-to-date in-memory NetworkX-cuGraph graph while performing CRUD operations
150+
on the NetworkX-ArangoDB Graph. NOTE: The first time you perform a CRUD
151+
operation on the NetworkX-ArangoDB Graph with an existing NetworkX-cuGraph cache
152+
will require downtime to copy the NetworkX-cuGraph Graph from GPU memory to CPU
153+
memory. Subsequent CRUD operations will not require this downtime.
154+
146155
args: positional arguments for nx.Graph
147156
Additional arguments passed to nx.Graph.
148157

0 commit comments

Comments
 (0)