arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1011.0468cs.DScs.SIphysics.soc-ph
收藏

基于度划分的大型图中三角形计数算法

Efficient Triangle Counting in Large Graphs via Degree-based Vertex Partitioning

Mihail N. Kolountzakis, Gary L. Miller, Richard Peng, Charalampos E. Tsourakakis

摘要:

三角形的数量是计算上昂贵的图统计,其经常用于复杂网络分析(例如,传递率),在各种随机图模型中(例如,指数随机图模型)以及重要的现实世界应用,如垃圾邮件检测、Web隐藏主题结构的发现和链接推荐。对具有数百万和数十亿条边的图中的三角形进行计数需要快速运行、使用少量空间、提供三角形数量的准确估计并且优选地是可并行化的算法。在本文中,我们提出了一个有效的三角形计数算法,它可以适用于半流模型。我们的算法的关键思想是结合Tsourakakis等人的采样算法。和分区的顶点集分别为一个高的程度和一个低的程度子集,在阿隆,Yuster和Zwick工作适当地对待每个集合。我们得到了一个运行时间$O \left(m + \frac{m^{3/2} Δ\log{n}}{t ε^2} \right)$和一个$ε$近似(乘法误差),其中$n$是顶点数,$m$是边数,$Δ$是边所包含的最大三角形数。此外,我们展示了如何该算法可以适应半流模型的空间使用$O\left(m^{1/2}\log{n} + \frac{m^{3/2} Δ\log{n}}{t ε^2} \right)$和一个常数的通过(三)的图形流。我们应用我们的方法在各种网络中有数百万的边缘,我们得到了很好的结果。最后,我们提出了一种基于随机投影的三角形计数方法,并给出了一个获得低方差估计的充分条件。

英文摘要:

The number of triangles is a computationally expensive graph statistic which is frequently used in complex network analysis (e.g., transitivity ratio), in various random graph models (e.g., exponential random graph model) and in important real world applications such as spam detection, uncovering of the hidden thematic structure of the Web and link recommendation. Counting triangles in graphs with millions and billions of edges requires algorithms which run fast, use small amount of space, provide accurate estimates of the number of triangles and preferably are parallelizable. In this paper we present an efficient triangle counting algorithm which can be adapted to the semistreaming model. The key idea of our algorithm is to combine the sampling algorithm of Tsourakakis et al. and the partitioning of the set of vertices into a high degree and a low degree subset respectively as in the Alon, Yuster and Zwick work treating each set appropriately. We obtain a running time $O \left(m + \frac{m^{3/2} Δ\log{n}}{t ε^2} \right)$ and an $ε$ approximation (multiplicative error), where $n$ is the number of vertices, $m$ the number of edges and $Δ$ the maximum number of triangles an edge is contained. Furthermore, we show how this algorithm can be adapted to the semistreaming model with space usage $O\left(m^{1/2}\log{n} + \frac{m^{3/2} Δ\log{n}}{t ε^2} \right)$ and a constant number of passes (three) over the graph stream. We apply our methods in various networks with several millions of edges and we obtain excellent results. Finally, we propose a random projection based method for triangle counting and provide a sufficient condition to obtain an estimate with low variance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑