diff --git a/arangod/Pregel/Algos/ShortestPath.cpp b/arangod/Pregel/Algos/ShortestPath.cpp index 37cff26b45..f70059693d 100644 --- a/arangod/Pregel/Algos/ShortestPath.cpp +++ b/arangod/Pregel/Algos/ShortestPath.cpp @@ -111,7 +111,7 @@ ShortestPathAlgorithm::ShortestPathAlgorithm(VPackSlice userParams) } std::set ShortestPathAlgorithm::initialActiveSet() { - return std::set{_format->_sourceDocId}; + return std::set{_source}; } GraphFormat* ShortestPathAlgorithm::inputFormat() const { @@ -120,7 +120,7 @@ GraphFormat* ShortestPathAlgorithm::inputFormat() const { VertexComputation* ShortestPathAlgorithm::createComputation(WorkerConfig const* _config) const { - PregelID target = _config->documentIdToPregel(_format->_targetDocId); + PregelID target = _config->documentIdToPregel(_target); return new SPComputation(target); }