-
Notifications
You must be signed in to change notification settings - Fork 454
refactor(interactive): Support complex graph schema #4538
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
base: main
Are you sure you want to change the base?
Conversation
…e labels Committed-by: [email protected] from Dev container Committed-by: [email protected] from Dev container
695ef6b
to
95ac50b
Compare
edge_label_num_ = graph.schema().edge_label_num(); | ||
vertex_label_num_ = graph.schema().vertex_label_num(); | ||
indexs.resize(2 * vertex_label_num_ * vertex_label_num_ * edge_label_num_, |
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.
Seems no need to resize to 2* csr_num? @liulx20
@@ -88,8 +92,7 @@ class Schema { | |||
const std::vector<std::tuple<PropertyType, std::string, size_t>>& | |||
primary_key, | |||
const std::vector<StorageStrategy>& strategies = {}, | |||
size_t max_vnum = static_cast<size_t>(1) << 32, | |||
const std::string& description = ""); | |||
size_t max_vnum = DEFAULT_MAX_VNUM, const std::string& description = ""); |
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.
previous 2^32 is two large when we have many kind of vertices. @liulx20
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4538 +/- ##
==========================================
+ Coverage 35.01% 44.76% +9.74%
==========================================
Files 127 12 -115
Lines 13299 592 -12707
==========================================
- Hits 4657 265 -4392
+ Misses 8642 327 -8315 see 115 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Please check the preview of the documentation changes at |
Committed-by: xiaolei.zl from Dev container
Previously we only allow less than 256 labels for vertices and edges in Interactive. In this PR, we make
label_t
customizable when building. And we introduce a test case to test interactive on a graph with 1000 vertex labels and 1000 edge labels.edge_triplet_id