Skip to content

new: invoke adbnx_adapter from nxadb.Graph constructor #4

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

Merged
merged 6 commits into from
Jun 10, 2024

Conversation

aMahanna
Copy link
Member

@aMahanna aMahanna commented Jun 10, 2024

Introduces the ability to rely on incoming_graph_data in an nxadb.Graph to insert into ArangoDB.

Useful for when we want to load NetworkX data into ArangoDB without having to deal with the NetworkX Adapter.

For now, we're just using the NetworkX Adapter under the hood. Long term, we could perhaps rely on arangoimport as an alternative...

Example:

import networkx as nx
import nx_arangodb as nxadb

G_nx = nx.karate_club_graph()
G_adb = nxadb.Graph(graph_name="karate", incoming_graph_data=G_nx, default_node_type="person")

# Graph "karate" is now loaded in ArangoDB

@aMahanna aMahanna merged commit 5ea9d99 into main Jun 10, 2024
1 check passed
@aMahanna aMahanna deleted the load-graph-from-nxadb branch June 10, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant