-
Notifications
You must be signed in to change notification settings - Fork 4
[GA-157] Recursive GraphDict #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Encountered some unexpected behaviour with this snippet:
import nx_arangodb as nxadb
G_adb = nxadb.Graph(
graph_name="KarateGraph",
foo="bar",
bar={"a":4},
)
G_adb.graph["bar"] = {"b": 5} # expecting "bar" to be set to {"b": 5}, but it is {"a": 4, "b": 5}
G_adb.graph["bar"]["b"] = 6 # "b" is now 6, but it has been also duplicated at the top-level of the graph document
G_adb.clear() # Clear the local graph cache (i.e clear G.graph.data)
G_adb.graph["bar"] # fails with KeyError: 'bar'
G_adb.graph["bar"] = {"b": 5} # expecting "bar" to be set to {"b": 5}, but it is {"a": 4, "b": 5} This behavior got fixed by the commits which will arrive now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
No description provided.