Skip to content
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

change find_one function in neo4j.py #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hetnetpy/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def export_neo4j(graph, uri, node_queue=200, edge_queue=5, show_progress=False):
rel_type = metaedge.neo4j_rel_type
source_label = metaedge.source.neo4j_label
target_label = metaedge.target.neo4j_label
source = db_graph.find_one(source_label, "identifier", edge.source.identifier)
target = db_graph.find_one(target_label, "identifier", edge.target.identifier)
source = db_graph.nodes.match(source_label, identifier=edge.source.identifier).first()
target = db_graph.nodes.match(target_label, identifier=edge.target.identifier).first()
data = sanitize_data(edge.data)
neo_rel = py2neo.Relationship(source, rel_type, target, **data)
creator.append(neo_rel)
Expand Down