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

Fixes #3937: Fully virtual graphs #4043

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Fixes #3937: Fully virtual graphs #4043

merged 2 commits into from
Apr 17, 2024

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Apr 8, 2024

Fixes #3937

Created both an aggregation function and a procedure with the signatures apoc.graph.filterProperties(<any>, nodePropertiesToRemove, relPropertiesToRemove) (similarly to gds which has fun aggregations and procedures with the same name).
where the nodePropertiesToRemove and relPropertiesToRemove parameter are maps
with key the label/relationship type and value the list of properties to remove from the virtual entities.
The key can also be _all, for both of them, which means that the properties of each label/rel-type are filtered.

  • Added image examples with Bloom and Neo4j Browser as well

Tried to reproduce part of the code of the gds.graph.project, but the latter has many utils and the gds virtual nodes work different (based on real nodes and doesn't have negative ids), so I think bringing the code into the apocs adds more complexity than doing it from scratch.

@RobertoSannino RobertoSannino merged commit 70dc75b into dev Apr 17, 2024
5 checks passed
@RobertoSannino RobertoSannino deleted the issue-3937 branch April 17, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants