MaplesGraph::MaplesGraph(size_t size) : size(size), graph(size) {
this->weights = new double *[size];
for (size_t i = 0; i < size; ++i) {
this->weights[i] = new double[size];
for (size_t j = 0; j < size; ++j) {
this->weights[i][j] = -1.0;
}
}
}
size 为24702, 大概分到11300左右就会中止。是因为分的内存太大的原因吗?