Abstract
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 weighted and directed graphs. As a particular case, we obtain a relation linking the Hamiltonian paths and cycles of a graph to its dominating connected sets.
Similar content being viewed by others
References
Alon, N., Yuster, R., Zwick, U.: Finding and counting given length cycles. Algorithmica 17, 209–223 (1997)
Bax, E.T.: Inclusion and exclusion algorithm for the hamiltonian path problem. Inf. Process. Lett. 47(4), 203–207 (1993)
Bax, E.T.: Algorithms to count paths and cycles. Inf. Process. Lett. 52(5), 249–252 (1994)
Bax, E., Franklin, J.: A finite-difference sieve to count paths and cycles by length. Inf. Process. Lett. 60(4), 171–176 (1996)
Björklund, A., Husfeldt, T., Kaski, P., Koivisto, M. (2009) Counting Paths and Packings in Halves. In: Fiat, A., Sanders, P. (eds) Algorithms - ESA 2009. ESA 2009. Lecture Notes in Computer Science, vol 5757, pp 578–586. Springer, Berlin, Heidelberg (2009)
Björklund, A., Husfeldt, T., Kaski, P., Koivisto, M.: The travelling salesman problem in bounded degree graphs. ACM Trans Algorithms 8(2) (2012)
Cartwright, D., Harary, F.: Structural balance: a generalization of heider’s theory. Psychol. Rev. 63, 277–293 (1956)
Cash, G.G.: The number of n-cycles in a graph. Appl. Math. Comput. 184(2), 1080–1083 (2007)
Harary, F., Manvel, B.: On the number of cycles in a graph. Matematický časopis 21, 55–63 (1971)
Karp, R.M.: Dynamic programming meets the principle of inclusion and exclusion. Oper. Res. Lett. 1(2), 49–51 (1982)
Khomenko, N.P., Golovko, L.D.: Identifying certain types of parts of a graph and computing their number. Ukrainskii Matematicheskii Zhurnal 24, 385–396 (1972)
Madras, N., Slade, G.: The self-avoiding walk. Springer Science & Business Media (2013)
Perepechko, S.N., Voropaev, A.N.: The number of fixed length cycles in an undirected graph. explicit formulae in case of small lengths. In: Mathematical Modeling and Computational Physics (MMCP2009), pp. 148–149 (2009)
Ross, I.C., Harary, F.: On the determination of redundancies in sociometric chains. Psychometrika 17, 195–208 (1952)
Schott, R., Staples, G.S.: Complexity of counting cycles using zeons. Comput. Math. Appl. 62(4), 1828–1837 (2011)
Acknowledgements
P.-L. Giscard is grateful for the financial support from the Royal Commission for the Exhibition of 1851. The authors are grateful to an anonymous referee for its many constructive remarks that helped improve the paper.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Giscard, PL., Rochet, P. Enumerating Simple Paths from Connected Induced Subgraphs. Graphs and Combinatorics 34, 1197–1202 (2018). https://doi.org/10.1007/s00373-018-1966-9
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00373-018-1966-9