| 44 | }; |
| 45 | |
| 46 | void DenseBFSGraph::init(ExecutionContext* context, Graph* graph) { |
| 47 | auto mm = storage::MemoryManager::Get(*context->clientContext); |
| 48 | for (auto& [tableID, maxOffset] : maxOffsetMap) { |
| 49 | denseObjects.allocate(tableID, maxOffset, mm); |
| 50 | } |
| 51 | auto vc = std::make_unique<BFSGraphInitVertexCompute>(*this); |
| 52 | GDSUtils::runVertexCompute(context, GDSDensityState::DENSE, graph, *vc); |
| 53 | } |
| 54 | |
| 55 | void DenseBFSGraph::pinTableID(table_id_t tableID) { |
| 56 | curData = denseObjects.getData(tableID); |
no test coverage detected