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

fix node type filter #1600

Closed
wants to merge 11 commits into from
Closed

fix node type filter #1600

wants to merge 11 commits into from

Conversation

shivam-880
Copy link
Collaborator

What changes were proposed in this pull request?

Fixes #1599

Why are the changes needed?

Same as above

Does this PR introduce any user-facing change? If yes is this documented?

No

How was this patch tested?

Unit test

Issues

If this resolves any issues, please link to them here, the format is a KEYWORD followed by @_
KEYWORDS available are close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved.
Please delete this text before creating your PR
#1599

Are there any further changes required?

No

@shivam-880 shivam-880 requested a review from miratepuffin May 14, 2024 10:52
Copy link
Collaborator

@miratepuffin miratepuffin left a comment

Choose a reason for hiding this comment

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

This needs to be exposed in python - we also need to just swap the semantics for the node_filter function on nodes instead of adding a new name.

Can you also add some tests to make sure this works with layered graphs, windowed graphs, subgraphs etc as you are utilising the base graph.

What happens when you call the function twice?

i.e. g.nodes().node_filter(["a","b"]).neighbours.node_filter(["b","c"]).collect()

@miratepuffin
Copy link
Collaborator

Now covered by a better implementation in #1606

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.

Fix issue with nodes type filter
2 participants