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

Modified write_to_neo (and generate_data) to allow one to specific an edge property to use as the relation name #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erickpeirson
Copy link

If edge_rel_key is not provided, then defaults to edge_rel_name. This involved making some existing parameters optional, in order to maintain the call signature and not impact compatibility.

For example:

from neonx import write_to_neo

import networkx as nx
G = nx.Graph()
G.add_nodes_from([1, 2, 3])
G.add_edge(1, 2, label='KNOWS')
G.add_edge(2, 3)

results = write_to_neo("http://localhost:7474/db/data/", G, 'LINKS_TO', 'Node', edge_rel_key='label')

… edge property () to use as the relation name. If is not provided, then defaults to . This involved making some existing parameters optional, in order to maintain the call signature and not impact compatibility.
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