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

Feature/node state ops #1854

Merged
merged 23 commits into from
Nov 22, 2024
Merged

Feature/node state ops #1854

merged 23 commits into from
Nov 22, 2024

Conversation

ljeub-pometry
Copy link
Collaborator

@ljeub-pometry ljeub-pometry commented Nov 8, 2024

What changes were proposed in this pull request?

Make lazy node state views support time ops and layer ops

Why are the changes needed?

so you can get a windowed degree for all nodes in the graph for example

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

Adds additional APIs that are documented

How was this patch tested?

Needs more tests

Are there any further changes required?

@ljeub-pometry ljeub-pometry marked this pull request as ready for review November 15, 2024 12:18
fn filtered<G: GraphViewOps<'graph>>(&self, graph: G) -> Self::Filtered<G>;
}

#[derive(Debug, Clone, Copy)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if many of these could just be special cases of a more generic
struct NodeOpFn<O, F: Fn(&GraphStorage, VID) -> O>(F)
and could be just made from constructors like

fn id()-> ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you do this you can no longer name the type which causes a bunch of problems, though maybe we can get away with fn

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file alone makes me SERIOUSLY want to reconsider the way we use generics to filter the graph

Copy link
Collaborator

@fabianmurariu fabianmurariu left a comment

Choose a reason for hiding this comment

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

LGTM

@miratepuffin miratepuffin merged commit e162209 into master Nov 22, 2024
19 checks passed
@miratepuffin miratepuffin deleted the feature/NodeStateOps branch November 22, 2024 15:00
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.

3 participants