A General Purpose Algorithm for Counting Simple Cycles and Simple Paths of Any Length

Algorithmica(2019)

引用 9|浏览28
暂无评分
摘要
We describe a general purpose algorithm for counting simple cycles and simple paths of any length ℓ on a (weighted di)graph on N vertices and M edges, achieving an asymptotic running time of O( N+M+ (ℓ ^ω +ℓΔ ) |S_ℓ |) . In this expression, |S_ℓ | is the number of (weakly) connected induced subgraphs of G on at most ℓ vertices, Δ is the maximum degree of any vertex and ω is the exponent of matrix multiplication. We compare the algorithm complexity both theoretically and experimentally with most of the existing algorithms for the same task. These comparisons show that the algorithm described here is the best general purpose algorithm for the class of graphs where (ℓ ^ω -1Δ ^-1+1) |S_ℓ |≤ |Cycle_ℓ | , with |Cycle_ℓ | the total number of simple cycles of length at most ℓ , including backtracks and self-loops. On Erdős–Rényi random graphs, we find empirically that this happens when the edge probability is larger than circa 4 / N . In addition, we show that some real-world networks also belong to this class. Finally, the algorithm permits the enumeration of simple cycles and simple paths on networks where vertices are labeled from an alphabet on n letters with an asymptotic running time of O( N+M+ (n^ℓℓ ^ω +ℓΔ ) |S_ℓ |) . A Matlab implementation of the algorithm proposed here is available for download.
更多
查看译文
关键词
Simple cycles,Simple paths,Self-avoiding walks,Self-avoiding polygons,Elementary circuits,Connected induced subgraphs,Networks,Graphs,Digraphs,Labeled graphs
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要