From 66006cc27055c099f371627ef68cf35bc1511cd0 Mon Sep 17 00:00:00 2001 From: Anthony Mahanna Date: Fri, 26 Apr 2024 15:41:32 -0400 Subject: [PATCH] fix: `nx_graph` parameter --- adbnx_adapter/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adbnx_adapter/adapter.py b/adbnx_adapter/adapter.py index 4fc75f8..1c42602 100644 --- a/adbnx_adapter/adapter.py +++ b/adbnx_adapter/adapter.py @@ -130,7 +130,7 @@ def arangodb_to_networkx( logger.debug(f"--arangodb_to_networkx('{name}')--") # Create a new NetworkX graph if one is not provided - nx_graph = nx_graph or NXMultiDiGraph(name=name) + nx_graph = nx_graph if nx_graph is not None else NXMultiDiGraph(name=name) # This maps the ArangoDB vertex IDs to NetworkX node IDs adb_map: Dict[str, NxId] = dict()