# Finding and counting given length cycles

@article{Alon1997FindingAC, title={Finding and counting given length cycles}, author={Noga Alon and Raphael Yuster and Uri Zwick}, journal={Algorithmica}, year={1997}, volume={17}, pages={209-223} }

We present an assortment of methods for finding and counting simple cycles of a given length in directed and undirected graphs. Most of the bounds obtained depend solely on the number of edges in the graph in question, and not on the number of vertices. The bounds obtained improve upon various previously known results.

## 516 Citations

### On the Number of Cycles in a Graph

- Mathematics
- 2014

In this paper, we obtain explicit formulae for the number of 7-cycles and the total number of cycles of lengths 6 and 7 which contain a specific vertex vi in a simple graph G, in terms of the…

### Enumerating Simple Paths from Connected Induced Subgraphs

- MathematicsGraphs Comb.
- 2018

An exact formula is presented for enumerating the simple paths between any two vertices of a graph using the adjacency matrices of the connected induced subgraphs and remains valid on weighted and directed graphs.

### Enumerating Simple Paths from Connected Induced Subgraphs

- MathematicsGraphs and Combinatorics
- 2018

We present an exact formula for enumerating the simple paths between any two vertices of a graph. Our formula involves the adjacency matrices of the connected induced subgraphs and remains valid on…

### Computing the Girth of a Planar Graph in O(n logn) Time

- Computer Science, MathematicsICALP
- 2009

An O (n logn ) algorithm for computing the girth (shortest cycle) of an undirected n -vertex planar graph is given that improves upon the best previously known algorithms for this problem.

### Unique Small Subgraphs Are Not Easier to Find

- MathematicsLATA
- 2011

It is shown that both the problem of finding an occurrence of a subgraph isomorphic to H as well as the decision version of the problem are as hard as in the general case when G may contain several occurrences of H.

### On the number of paths of length 5 in a graph

- Mathematics
- 2015

n this paper, we obtain an explicit formula for the total number of paths of length 5 in a simple graph G. We also determine some formulae for the number of paths of length 5 each of which starts…

### On Triangle Counting Parameterized by Twin-Width

- MathematicsArXiv
- 2022

In this report we present an algorithm solving triangle counting in time O(dn+m), where n and m, respectively, denote the number of vertices and edges of a graph G and d denotes its twin-width, a…

### On the complexity of fixed parameter clique and dominating set

- Computer Science, MathematicsTheor. Comput. Sci.
- 2004

### Fast counting of medium-sized rooted subgraphs

- Mathematics, Computer ScienceArXiv
- 2017

It is proved that counting copies of any graph F in another graph G can be achieved using basic matrix operations on the adjacency matrix of G, and that, for a general class of graph operators, matrix operations are homomorphisms for operations on rooted graphs.

### Algebraic Algorithms for Even Circuits in Graphs

- Mathematics, Computer ScienceMathematics
- 2019

An algebraic algorithm is presented to detect the existence of and to list all indecomposable even circuits in a given graph and its application to the study of directed cycles in digraphs is discussed.

## References

SHOWING 1-10 OF 22 REFERENCES

### Finding and Counting Given Length Cycles (Extended Abstract)

- Computer Science, MathematicsESA
- 1994

An assortment of methods for finding and counting simple cycles of a given length in directed and undirected graphs improve upon various previously known results.

### Finding Even Cycles Even Faster

- Mathematics, Computer ScienceSIAM J. Discret. Math.
- 1994

Efficient algorithms for finding even cycles in undirected graphs and finding the shortest even cycle in an Undirected graph G=(V, E) in O(V2) time.

### Finding and counting small induced subgraphs efficiently

- MathematicsInf. Process. Lett.
- 2000

Two algorithms for listing all simplicial vertices of a graph running in time O (n α ) and O (e 2α/(α+1) )= O ( e 1.41) are given, and it is shown that counting the number of K 4 's in a graph can be done in timeO (e ( α+1)/2 ) .

### Smallest-last ordering and clustering and graph coloring algorithms

- Computer ScienceJACM
- 1983

Smallest-last vertex ordering and prlonty search are utdlzed to show for any graph G = (IT, E) that the set of all connected subgraphs maxunal with respect to their minimum degree can be determined…

### Recognizing small subgraphs

- MathematicsNetworks
- 1995

An O(n f m) algorithm for recognizing a fixed subgraph H with flower number f within a graph G with n vertices and m edges is presented, which matches the best algorithms known for recognizing small paths, cycles, and cliques.

### Color-coding: a new method for finding simple paths, cycles and other small subgraphs within large graphs

- MathematicsSTOC '94
- 1994

A novel randomized method, the method of color-coding for finding simple paths and cycles of a specified length k, and other small subgraphs, within a given graph G = (V,E), which can be derandomized using families of perfect hash functions.

### Arboricity and Subgraph Listing Algorithms

- MathematicsSIAM J. Comput.
- 1985

A new simple strategy into edge-searching of a graph, which is useful to the various subgraph listing problems, is introduced, and an upper bound on $a(G)$ is established for a graph $G:a (G) \leqq \lceil (2m + n)^{1/2} \rceil $, where n is the number of vertices in G.