-
Notifications
You must be signed in to change notification settings - Fork 6
Move non-NVL custom fields into a properties dict #137
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
c9ce0b5
to
eac656b
Compare
Only `Node`, `Relationship` and `from_neo4j` updated so far. Co-Authored-By: Florentin Dörre <florentin.dorre@neotechnology.com>
eac656b
to
9763371
Compare
f77c741
to
f8b121c
Compare
|
||
|
||
class PropertyType(Enum): | ||
class ColorSpace(Enum): |
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.
I think I would prefer ValueSpace over ColorSpace.
Could at some doc string to clarify what we mean here
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.
I prefer ColorSpace
as it also describes how one should interpret the colors
provided to color_nodes
. And a field/property can have float values, but you still might want to color it with a discrete space
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.
But yes, we should add doc strings
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.
Done :)
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.
I like this change!
Its a good step allowing us other features we planned such as case-insensitive on data input :)
|
||
def from_dfs( | ||
node_dfs: DFS_TYPE, rel_dfs: DFS_TYPE, node_radius_min_max: Optional[tuple[float, float]] = (3, 60) | ||
def _from_dfs( |
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.
why the 2 methods now? the signature looks the same?
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.
No they're not exactly the same. See the rename_properties
arg, and how the from_gds
loader uses it
Co-Authored-By: Florentin Dörre <florentin.dorre@neotechnology.com>
Thank you for your contribution to the Graph Data Science Client project.
Before submitting this PR, please read Contributing to the Neo4j Ecosystem.
Make sure: