Skip to content

Conversation

@adamnsch
Copy link
Contributor

@adamnsch adamnsch commented Jun 7, 2022

No description provided.

adamnsch and others added 2 commits June 7, 2022 14:51
Co-Authored-By: Brian Shi <brian.shi@neotechnology.com>
Co-Authored-By: Brian Shi <brian.shi@neotechnology.com>
Copy link
Contributor

@FlorentinD FlorentinD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"targetId": [1, 2, 3, 0],
"relationshipType": ["REL", "REL", "REL", "REL"],
"weight": [0.0, 0.0, 0.1, 42.0]
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a difference to use the curly brackets here?

Copy link
Contributor Author

@adamnsch adamnsch Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was wrong before. The DataFrame constructor takes a dictionary which now it is :)

Comment on lines +74 to +79
# Make sure every node has a list of labels
for node in node_list:
labels = node[label_index]
if isinstance(labels, List):
continue
node[label_index] = [labels]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so now we pack strings into a list :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, since gds.graph.project.cypher wants a list for labels this seemed like the simplest solution for now

@FlorentinD FlorentinD merged commit ac13aef into neo4j:main Jun 8, 2022
@adamnsch adamnsch deleted the allow-string-label-in-construct branch June 8, 2022 08:08
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.

2 participants