一个用于大规模图核心分解的并行和分布式Rust库
A Parallel and Distributed Rust Library for Core Decomposition on Large Graphs
AI总结:
本文提出了一种基于Rust语言的并行和分布式库,用于高效计算大规模图的核心分解,通过优化算法和并发机制实现了显著的速度提升。
摘要:
本文研究了$k$-核心分解的并行化,这是一种用于图分析的方法,用于识别凝聚子结构并评估节点中心性。尽管已有高效的顺序算法用于此任务,但现代网络的规模要求更快、多核友好的方法。为此,我们将Montresor等人最初提出用于共享内存系统的分布式$k$-核心算法进行了适应,并用Rust实现,利用该语言在并发性和内存安全性方面的优势。我们开发了三个逐步优化的版本:SequentialK作为基线,ParallelK引入多线程消息传递,以及FastK进一步减少同步开销。对现实世界数据集的广泛实验,包括道路网络、网络图和社交网络,表明FastK在速度和效率上均优于SequentialK和ParallelK,以及NetworkX库中的参考Python实现。结果表明,在16个线程上实现了高达11倍的速度提升,执行时间比Python实现快两个数量级。
英文摘要:
In this paper, we investigate the parallelization of $k$-core decomposition, a method used in graph analysis to identify cohesive substructures and assess node centrality. Although efficient sequential algorithms exist for this task, the scale of modern networks requires faster, multicore-ready approaches. To this end, we adapt a distributed $k$-core algorithm originally proposed by Montresor et al. to shared-memory systems and implement it in Rust, leveraging the language's strengths in concurrency and memory safety. We developed three progressively optimized versions: SequentialK as a baseline, ParallelK introducing multi-threaded message passing, and FastK further reducing synchronization overhead. Extensive experiments on real-world datasets, including road networks, web graphs, and social networks, show that FastK consistently outperforms both SequentialK and ParallelK, as well as a reference Python implementation available in the NetworkX library. Results indicate up to an 11x speedup on 16 threads and execution times up to two orders of magnitude faster than the Python implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。