diff --git a/nx_arangodb/classes/digraph.py b/nx_arangodb/classes/digraph.py index cad6be4..f1b7ab6 100644 --- a/nx_arangodb/classes/digraph.py +++ b/nx_arangodb/classes/digraph.py @@ -125,6 +125,12 @@ class DiGraph(Graph, nx.DiGraph): whenever possible. NOTE: This feature is experimental and may not work as expected. + overwrite_graph : bool (optional, default: False) + Whether to truncate the graph collections when the graph is loaded from + the database. If set to True, the graph collections will be truncated + before loading the graph data. NOTE: This parameter only applies if the + graph already exists in the database. + args: positional arguments for nx.Graph Additional arguments passed to nx.Graph. diff --git a/nx_arangodb/classes/graph.py b/nx_arangodb/classes/graph.py index b989348..28641b8 100644 --- a/nx_arangodb/classes/graph.py +++ b/nx_arangodb/classes/graph.py @@ -159,6 +159,12 @@ class Graph(nx.Graph): whenever possible. NOTE: This feature is experimental and may not work as expected. + overwrite_graph : bool (optional, default: False) + Whether to truncate the graph collections when the graph is loaded from + the database. If set to True, the graph collections will be truncated + before loading the graph data. NOTE: This parameter only applies if the + graph already exists in the database. + args: positional arguments for nx.Graph Additional arguments passed to nx.Graph. diff --git a/nx_arangodb/classes/multidigraph.py b/nx_arangodb/classes/multidigraph.py index 4a7be42..451b501 100644 --- a/nx_arangodb/classes/multidigraph.py +++ b/nx_arangodb/classes/multidigraph.py @@ -135,6 +135,12 @@ class MultiDiGraph(MultiGraph, DiGraph, nx.MultiDiGraph): whenever possible. NOTE: This feature is experimental and may not work as expected. + overwrite_graph : bool (optional, default: False) + Whether to truncate the graph collections when the graph is loaded from + the database. If set to True, the graph collections will be truncated + before loading the graph data. NOTE: This parameter only applies if the + graph already exists in the database. + args: positional arguments for nx.Graph Additional arguments passed to nx.Graph. diff --git a/nx_arangodb/classes/multigraph.py b/nx_arangodb/classes/multigraph.py index 84c374d..0ce983e 100644 --- a/nx_arangodb/classes/multigraph.py +++ b/nx_arangodb/classes/multigraph.py @@ -136,6 +136,12 @@ class MultiGraph(Graph, nx.MultiGraph): whenever possible. NOTE: This feature is experimental and may not work as expected. + overwrite_graph : bool (optional, default: False) + Whether to truncate the graph collections when the graph is loaded from + the database. If set to True, the graph collections will be truncated + before loading the graph data. NOTE: This parameter only applies if the + graph already exists in the database. + args: positional arguments for nx.Graph Additional arguments passed to nx.Graph.