一句话:提出并行图分析框架 PnP,用在线剪枝与动态方向预测加速单源单目标点对点迭代图查询。
迭代图分析算法通常计算开销很高,但许多应用只需要点对点查询,即给定单个源点和目标点。本文提出 PnP 并行框架,用于处理这类点对点查询流。其效率来自两项创新:在线剪枝,剔除被判定不会影响查询最终解的顶点传播;动态方向预测,在前向(从源点出发)与后向(从目标点出发)之间选择代价更低的方向。PnP 采用两阶段算法:阶段1双向简短遍历图,以预测较快方向并启用剪枝;阶段2沿选定方向迭代运行算法直至收敛。实验在多个基准和图数据上表明,PnP 响应查询迅速,方向选择准确且剪枝有效,常能抵消方向预测的运行时开销。与唯一的同类点对点查询评估框架 Quegel 相比,单机 PnP 比四机集群上的 Quegel 快 8.2× 至 3116×。
Frequently used parallel iterative graph analytics algorithms are computationally expensive. However, researchers have observed that applications often require point-to-point versions of these analytics algorithms that are less demanding. In this paper we introduce the PnP parallel framework for iterative graph analytics that processes a stream of point-to-point queries with each involving a single source and destination vertex pair. The efficiency of our framework is derived from the following two novel features: online Pruning of graph exploration that eliminates propagation from vertices that are determined to not contribute to a query's final solution; and dynamic direction Prediction for solving the query in either forward (from source) or backward (from destination) direction as their costs can differ greatly. PnP employs a two-phase algorithm where, Phase 1 briefly traverses the graph in both directions to predict the faster direction and enable pruning; then Phase 2 completes query evaluation by running the algorithm for the chosen direction till it converges. Our experiments show that PnP responds to queries rapidly because of accurate direction selection and effective pruning that often offsets the runtime overhead of direction prediction. PnP substantially outperforms Quegel, the only other point-to-point query evaluation framework. Our experiments on multiple benchmarks and graphs show that PnP on a single machine is 8.2× to 3116× faster than Quegel on a cluster of four machines.