Skip to content

Commit

Permalink
fix: nx_graph parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Apr 26, 2024
1 parent 2cdf72a commit 66006cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adbnx_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 66006cc

Please sign in to comment.