| 70 | }; |
| 71 | |
| 72 | static double getRJProgress(offset_t totalNumNodes, offset_t completedNumNodes) { |
| 73 | if (totalNumNodes == 0) { |
| 74 | return 0; |
| 75 | } |
| 76 | return (double)completedNumNodes / totalNumNodes; |
| 77 | } |
| 78 | |
| 79 | static bool requireRelID(const RJAlgorithm& function) { |
| 80 | if (function.getFunctionName() == WeightedSPPathsFunction::name || |