-
Notifications
You must be signed in to change notification settings - Fork 56
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
Pre multi graph #1695
Pre multi graph #1695
Conversation
Make the OS Raphtory support GID
d67043a
to
31a9336
Compare
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.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2
.
Benchmark suite | Current: aa0722b | Previous: b0fe8cb | Ratio |
---|---|---|---|
lotr_graph/has_node_existing |
17 ns/iter (± 1 ) |
6 ns/iter (± 0 ) |
2.83 |
This comment was automatically generated by workflow using github-action-benchmark.
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.
Some minor things to cleanup, shouldn't use GID as the output format for algorithms
"# checking edge 1,2 exists and 2,1 doesn't as Raphtory is directed\n", | ||
"print(g.has_edge(1, 2), g.has_edge(2, 1))\n", | ||
"print(g.has_edge(\"1\", \"2\"), g.has_edge(\"2\", \"1\"))\n", | ||
"# Check the total number of edges and nodes\n", |
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.
Instead of changing all the numbers to strings, we probably should make the example with string ids use a new graph instead so this still explains both scenarios
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.
Good to merge
What changes were proposed in this pull request?
Move most of the graph logic into GraphStorage
Add
iter
in Nodes that returns NodeView with references and avoid cloneshand node ids that are strings better
Why are the changes needed?
Simplify the implementation of a multi graph
Does this PR introduce any user-facing change? If yes is this documented?
No
How was this patch tested?
Issues
#1686
Are there any further changes required?