in cpp/src/graphar/graph_info.cc [1113:1132]
bool is_validated() const noexcept {
if (name_.empty() || prefix_.empty()) {
return false;
}
for (const auto& v : vertex_infos_) {
if (!v || !v->IsValidated()) {
return false;
}
}
for (const auto& e : edge_infos_) {
if (!e || !e->IsValidated()) {
return false;
}
}
if (vertex_infos_.size() != vtype_to_index_.size() ||
edge_infos_.size() != etype_to_index_.size()) {
return false;
}
return true;
}