Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 committed Apr 1, 2021
1 parent 1d90ef1 commit 2c0fa00
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ MGPropertyGraphSchema MGPropertyGraphSchema::TransformToMaxGraph() {
Entry new_entry = entry;
new_entry.mapping.resize(new_entry.props_.size(), -1);
new_entry.reverse_mapping.resize(maximum_possible_mg_prop_id, -1);
new_entry.valid_properties.resize(maximum_possible_mg_prop_id, 1);
for (auto& prop : new_entry.props_) {
int new_id = name_to_idx[prop.name];
new_entry.mapping[prop.id] = new_id;
Expand All @@ -286,6 +287,7 @@ MGPropertyGraphSchema MGPropertyGraphSchema::TransformToMaxGraph() {
Entry new_entry = entry;
new_entry.mapping.resize(new_entry.props_.size(), -1);
new_entry.reverse_mapping.resize(maximum_possible_mg_prop_id, -1);
new_entry.valid_properties.resize(maximum_possible_mg_prop_id, 1);
new_entry.id += vertex_label_num;
for (auto& prop : new_entry.props_) {
int new_id = name_to_idx[prop.name];
Expand Down

0 comments on commit 2c0fa00

Please sign in to comment.