A near-optimal approach to edge connectivity-based hierarchical graph decomposition

Lijun Chang, Zhiyi Wang
{"title":"A near-optimal approach to edge connectivity-based hierarchical graph decomposition","authors":"Lijun Chang, Zhiyi Wang","doi":"10.1007/s00778-023-00797-x","DOIUrl":null,"url":null,"abstract":"Abstract The problem of efficiently computing all $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -edge-connected components ( $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs) of a graph G for a user-given k has been extensively studied recently in view of its importance in many applications. The $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs of G for all possible values of k form a hierarchical structure; that is, any two different $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs for the same k value are disjoint and any $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECC is contained in a unique $$(k\\text {-}1)$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>k</mml:mi> <mml:mtext>-</mml:mtext> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> -ECC. In this paper, we study the problem of efficiently constructing the hierarchy tree of the $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs for all possible k values, for a graph G . The existing approaches $$\\textsf{TD}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>TD</mml:mi> </mml:math> and $$\\textsf{BU}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>BU</mml:mi> </mml:math> construct the hierarchy tree in either a top-down manner or a bottom-up manner, with both having the time complexity of $${{\\mathcal {O}}}\\big (\\delta (G)\\times {\\mathsf {T_{KECC}}} (G)\\big )$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>O</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> </mml:mrow> <mml:mi>δ</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mo>×</mml:mo> <mml:msub> <mml:mi>T</mml:mi> <mml:mi>KECC</mml:mi> </mml:msub> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> </mml:mrow> </mml:math> , where $$\\delta (G)$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>δ</mml:mi> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> is the degeneracy of G and $${\\mathsf {T_{KECC}}} (G)$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msub> <mml:mi>T</mml:mi> <mml:mi>KECC</mml:mi> </mml:msub> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> </mml:mrow> </mml:math> is the time complexity of computing all $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs of G for a specific k value. Here, the degeneracy of G is defined as the maximum value among the minimum vertex degrees of all subgraphs of G and is at most $$\\sqrt{m}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:msqrt> <mml:mi>m</mml:mi> </mml:msqrt> </mml:math> where m is the number of edges in G . To improve the time complexity, we propose a divide-and-conquer approach $$\\textsf{DC}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>DC</mml:mi> </mml:math> running in $${{\\mathcal {O}}}\\big ( (\\log \\delta (G))\\times {\\mathsf {T_{KECC}}} (G)\\big )$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>O</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> </mml:mrow> <mml:mrow> <mml:mo>(</mml:mo> <mml:mo>log</mml:mo> <mml:mi>δ</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> <mml:mo>×</mml:mo> <mml:msub> <mml:mi>T</mml:mi> <mml:mi>KECC</mml:mi> </mml:msub> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> </mml:mrow> </mml:math> time; this time complexity is optimal up to a logarithmic factor. However, a straightforward implementation of $$\\textsf{DC}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>DC</mml:mi> </mml:math> would take $${{\\mathcal {O}}}( (m + n) \\log \\delta (G))$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>O</mml:mi> <mml:mo>(</mml:mo> <mml:mo>(</mml:mo> <mml:mi>m</mml:mi> <mml:mo>+</mml:mo> <mml:mi>n</mml:mi> <mml:mo>)</mml:mo> <mml:mo>log</mml:mo> <mml:mi>δ</mml:mi> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> main-memory space, which could easily run out-of-memory when processing large graphs; here, n is the number of vertices in G . To reduce the main-memory footprint of our algorithm, we propose adjacency array-based techniques to optimize the space complexity to $$2m+{{\\mathcal {O}}}(n\\log \\delta (G))$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mn>2</mml:mn> <mml:mi>m</mml:mi> <mml:mo>+</mml:mo> <mml:mi>O</mml:mi> <mml:mo>(</mml:mo> <mml:mi>n</mml:mi> <mml:mo>log</mml:mo> <mml:mi>δ</mml:mi> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> and denote our resulting algorithm by $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> . As a by-product of $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> , we also improve the space complexity of the state-of-the-art algorithm for computing all $$k$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>k</mml:mi> </mml:math> -ECCs for a specific k to $$2m + {{\\mathcal {O}}}(n)$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mn>2</mml:mn> <mml:mi>m</mml:mi> <mml:mo>+</mml:mo> <mml:mi>O</mml:mi> <mml:mo>(</mml:mo> <mml:mi>n</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> , by using the same technique as used in $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> . Finally, we propose optimization techniques to improve the practical efficiency of the existing approach $$\\textsf{BU}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mi>BU</mml:mi> </mml:math> and denote the space-optimized version of it as $$\\mathsf {BU^*\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msup> <mml:mi>BU</mml:mi> <mml:mo>∗</mml:mo> </mml:msup> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> which runs in $${{\\mathcal {O}}}\\big (\\delta (G)\\times {\\mathsf {T_{KECC}}} (G)\\big )$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>O</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> </mml:mrow> <mml:mi>δ</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mo>×</mml:mo> <mml:msub> <mml:mi>T</mml:mi> <mml:mi>KECC</mml:mi> </mml:msub> <mml:mrow> <mml:mo>(</mml:mo> <mml:mi>G</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> <mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> </mml:mrow> </mml:math> time and $$2m+{{\\mathcal {O}}}(n)$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mn>2</mml:mn> <mml:mi>m</mml:mi> <mml:mo>+</mml:mo> <mml:mi>O</mml:mi> <mml:mo>(</mml:mo> <mml:mi>n</mml:mi> <mml:mo>)</mml:mo> </mml:mrow> </mml:math> space. Extensive experiments on large real graphs and synthetic graphs demonstrate that our algorithms $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> and $$\\mathsf {BU^*\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msup> <mml:mi>BU</mml:mi> <mml:mo>∗</mml:mo> </mml:msup> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> outperform the state-of-the-art approaches by up to 28 times in terms of running time and by up to 8 times in terms of main memory usage. In particular, our approach $$\\mathsf {BU^*\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msup> <mml:mi>BU</mml:mi> <mml:mo>∗</mml:mo> </mml:msup> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> processes the Twitter graph, which has more than 1 billion undirected edges, in 29 min with 13.5 GB memory, while the state-of-the-art approaches take more than 13 h after our space optimization; note that the state-of-the-art approaches run out-of-memory if without our space optimization. Our empirical study also shows that $$\\mathsf {BU^*\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msup> <mml:mi>BU</mml:mi> <mml:mo>∗</mml:mo> </mml:msup> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> , despite having a higher time complexity, performs better than $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> in practice. We also remark that $$\\mathsf {BU^*\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:msup> <mml:mi>BU</mml:mi> <mml:mo>∗</mml:mo> </mml:msup> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> is much simpler and easier to implement than $$\\mathsf {DC\\text {-}AA}$$ <mml:math xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"> <mml:mrow> <mml:mi>DC</mml:mi> <mml:mtext>-</mml:mtext> <mml:mi>AA</mml:mi> </mml:mrow> </mml:math> .","PeriodicalId":338536,"journal":{"name":"The VLDB Journal","volume":"25 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-05-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The VLDB Journal","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1007/s00778-023-00797-x","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Abstract The problem of efficiently computing all $$k$$ k -edge-connected components ( $$k$$ k -ECCs) of a graph G for a user-given k has been extensively studied recently in view of its importance in many applications. The $$k$$ k -ECCs of G for all possible values of k form a hierarchical structure; that is, any two different $$k$$ k -ECCs for the same k value are disjoint and any $$k$$ k -ECC is contained in a unique $$(k\text {-}1)$$ ( k - 1 ) -ECC. In this paper, we study the problem of efficiently constructing the hierarchy tree of the $$k$$ k -ECCs for all possible k values, for a graph G . The existing approaches $$\textsf{TD}$$ TD and $$\textsf{BU}$$ BU construct the hierarchy tree in either a top-down manner or a bottom-up manner, with both having the time complexity of $${{\mathcal {O}}}\big (\delta (G)\times {\mathsf {T_{KECC}}} (G)\big )$$ O ( δ ( G ) × T KECC ( G ) ) , where $$\delta (G)$$ δ ( G ) is the degeneracy of G and $${\mathsf {T_{KECC}}} (G)$$ T KECC ( G ) is the time complexity of computing all $$k$$ k -ECCs of G for a specific k value. Here, the degeneracy of G is defined as the maximum value among the minimum vertex degrees of all subgraphs of G and is at most $$\sqrt{m}$$ m where m is the number of edges in G . To improve the time complexity, we propose a divide-and-conquer approach $$\textsf{DC}$$ DC running in $${{\mathcal {O}}}\big ( (\log \delta (G))\times {\mathsf {T_{KECC}}} (G)\big )$$ O ( ( log δ ( G ) ) × T KECC ( G ) ) time; this time complexity is optimal up to a logarithmic factor. However, a straightforward implementation of $$\textsf{DC}$$ DC would take $${{\mathcal {O}}}( (m + n) \log \delta (G))$$ O ( ( m + n ) log δ ( G ) ) main-memory space, which could easily run out-of-memory when processing large graphs; here, n is the number of vertices in G . To reduce the main-memory footprint of our algorithm, we propose adjacency array-based techniques to optimize the space complexity to $$2m+{{\mathcal {O}}}(n\log \delta (G))$$ 2 m + O ( n log δ ( G ) ) and denote our resulting algorithm by $$\mathsf {DC\text {-}AA}$$ DC - AA . As a by-product of $$\mathsf {DC\text {-}AA}$$ DC - AA , we also improve the space complexity of the state-of-the-art algorithm for computing all $$k$$ k -ECCs for a specific k to $$2m + {{\mathcal {O}}}(n)$$ 2 m + O ( n ) , by using the same technique as used in $$\mathsf {DC\text {-}AA}$$ DC - AA . Finally, we propose optimization techniques to improve the practical efficiency of the existing approach $$\textsf{BU}$$ BU and denote the space-optimized version of it as $$\mathsf {BU^*\text {-}AA}$$ BU ∗ - AA which runs in $${{\mathcal {O}}}\big (\delta (G)\times {\mathsf {T_{KECC}}} (G)\big )$$ O ( δ ( G ) × T KECC ( G ) ) time and $$2m+{{\mathcal {O}}}(n)$$ 2 m + O ( n ) space. Extensive experiments on large real graphs and synthetic graphs demonstrate that our algorithms $$\mathsf {DC\text {-}AA}$$ DC - AA and $$\mathsf {BU^*\text {-}AA}$$ BU ∗ - AA outperform the state-of-the-art approaches by up to 28 times in terms of running time and by up to 8 times in terms of main memory usage. In particular, our approach $$\mathsf {BU^*\text {-}AA}$$ BU ∗ - AA processes the Twitter graph, which has more than 1 billion undirected edges, in 29 min with 13.5 GB memory, while the state-of-the-art approaches take more than 13 h after our space optimization; note that the state-of-the-art approaches run out-of-memory if without our space optimization. Our empirical study also shows that $$\mathsf {BU^*\text {-}AA}$$ BU ∗ - AA , despite having a higher time complexity, performs better than $$\mathsf {DC\text {-}AA}$$ DC - AA in practice. We also remark that $$\mathsf {BU^*\text {-}AA}$$ BU ∗ - AA is much simpler and easier to implement than $$\mathsf {DC\text {-}AA}$$ DC - AA .

Abstract Image

基于边缘连通性的分层图分解的近最优方法
对于用户给定的k,有效计算图G的所有$$k$$ k边连通分量($$k$$ k -ECCs)的问题在许多应用中具有重要意义,近年来得到了广泛的研究。对于k的所有可能值,G的$$k$$ k -ECCs形成一个层次结构;即对于相同的k值,任意两个不同的$$k$$ k - ecc是不相交的,任意一个$$k$$ k - ecc包含在一个唯一的$$(k\text {-}1)$$ (k - 1) - ecc中。在本文中,我们研究了对于图G的所有可能的k值,如何有效地构造$$k$$ k -ECCs的层次树的问题。现有的$$\textsf{TD}$$ TD和$$\textsf{BU}$$ BU方法以自顶向下或自底向上的方式构建层次树,时间复杂度均为$${{\mathcal {O}}}\big (\delta (G)\times {\mathsf {T_{KECC}}} (G)\big )$$ O (δ (G) × T KECC (G)),其中$$\delta (G)$$ δ (G)为G的简并度,$${\mathsf {T_{KECC}}} (G)$$ T KECC (G)为计算特定k值下G的所有$$k$$ k - ecc的时间复杂度。这里,G的简并度定义为G的所有子图的最小顶点度数中的最大值,且不超过$$\sqrt{m}$$ m,其中m为G中的边数。为了提高时间复杂度,我们提出了分而治之的方法$$\textsf{DC}$$ DC在$${{\mathcal {O}}}\big ( (\log \delta (G))\times {\mathsf {T_{KECC}}} (G)\big )$$ O ((log δ (G)) × T KECC (G))时间内运行;这种时间复杂度在对数因子范围内是最优的。但是,$$\textsf{DC}$$ DC的直接实现将占用$${{\mathcal {O}}}( (m + n) \log \delta (G))$$ O ((m + n) log δ (G))主内存空间,在处理大型图形时很容易耗尽内存;这里n是G中顶点的个数。为了减少算法的主内存占用,我们提出了基于邻接数组的技术,将空间复杂度优化到$$2m+{{\mathcal {O}}}(n\log \delta (G))$$ 2 m + O (n log δ (G)),并用$$\mathsf {DC\text {-}AA}$$ DC - AA表示我们的结果算法。作为$$\mathsf {DC\text {-}AA}$$ DC - AA的副产品,我们还通过使用与$$\mathsf {DC\text {-}AA}$$ DC - AA相同的技术,提高了用于计算特定k到$$2m + {{\mathcal {O}}}(n)$$ 2 m + O (n)的所有$$k$$ k - eccs的最先进算法的空间复杂度。最后,我们提出了优化技术来提高现有方法$$\textsf{BU}$$ BU的实际效率,并将其空间优化版本表示为$$\mathsf {BU^*\text {-}AA}$$ BU∗- AA,运行在$${{\mathcal {O}}}\big (\delta (G)\times {\mathsf {T_{KECC}}} (G)\big )$$ O (δ (G) × T KECC (G))时间和$$2m+{{\mathcal {O}}}(n)$$ 2 m + O (n)空间。在大型真实图和合成图上进行的大量实验表明,我们的算法$$\mathsf {DC\text {-}AA}$$ DC - AA和$$\mathsf {BU^*\text {-}AA}$$ BU∗- AA在运行时间方面比最先进的方法高出28倍,在主内存使用方面高出8倍。特别是,我们的方法$$\mathsf {BU^*\text {-}AA}$$ BU∗- AA在13.5 GB内存下,在29分钟内处理具有超过10亿个无向边的Twitter图,而最先进的方法在我们的空间优化后需要超过13小时;注意,如果没有我们的空间优化,最先进的方法会耗尽内存。我们的实证研究也显示,虽然$$\mathsf {BU^*\text {-}AA}$$ BU∗- AA具有更高的时间复杂度,但在实践中表现优于$$\mathsf {DC\text {-}AA}$$ DC - AA。我们也注意到$$\mathsf {BU^*\text {-}AA}$$ BU * - AA比$$\mathsf {DC\text {-}AA}$$ DC - AA更简单,更容易实现。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书