# Hosoya index

The complete graph K4 has the ten matchings shown, so its Hosoya index is ten, the maximum for any four-vertex graph.

The Hosoya index, also known as the Z index, of a graph is the total number of matchings in it. The Hosoya index is always at least one, because the empty set of edges is counted as a matching for this purpose. Equivalently, the Hosoya index is the number of non-empty matchings plus one.

## History

This graph invariant was introduced by Haruo Hosoya in 1971.[1] It is often used in chemoinformatics for investigations of organic compounds.[2][3]

In his article "The Topological Index Z Before and After 1971" on the history of the notion and the associated inside stories, Hosoya writes that he introduced the Z index to report a good correlation of the boiling points of alkane isomers and their Z indices, basing on his unpublished 1957 work carried out while he was an undergraduate student at the University of Tokyo.[2]

## Example

A linear alkane, for the purposes of the Hosoya index, may be represented as a path graph without any branching. A path with one vertex and no edges (corresponding to the methane molecule) has one (empty) matching, so its Hosoya index is one; a path with one edge (ethane) has two matchings (one with zero edges and one with one edges), so its Hosoya index is two. Propane (a length-two path) has three matchings: either of its edges, or the empty matching. n-butane (a length-three path) has five matchings, distinguishing it from isobutane which has four. More generally, a matching in a path with k edges either forms a matching in the first k − 1 edges, or it forms a matching in the first k − 2 edges together with the final edge of the path. Thus, the Hosoya indices of linear alkanes obey the recurrence governing the Fibonacci numbers. Ths structure of the matchings in these graphs may be visualized using a Fibonacci cube.

The largest possible value of the Hosoya index, on a graph with n vertices, is given by the complete graph, and the Hosoya indices for the complete graphs are the telephone numbers

1, 1, 2, 4, 10, 26, 76, 232, 764, 2620, 9496, ... (sequence A000085 in OEIS).[4]

## Algorithms

The Hosoya index is #P-complete to compute, even for planar graphs.[5] However, it may be calculated by evaluating the matching polynomial mG at the argument 1.[6] Based on this evaluation, the calculation of the Hosoya index is fixed-parameter tractable for graphs of bounded treewidth[7] and polynomial (with an exponent that depends linearly on the width) for graphs of bounded clique-width.[8]

## Notes

1. ^ Hosoya, Haruo (1971), "Topological index. A newly proposed quantity characterizing the topological nature of structural isomers of saturated hydrocarbons", Bulletin of the Chemical Society of Japan 44 (9): 2332–2339, doi:10.1246/bcsj.44.2332.
2. ^ a b Hosoya, Haruo (2002), "The topological index Z before and after 1971", Internet Electronic Journal of Molecular Design 1 (9): 428–442.
3. ^ Internet Electronic Journal of Molecular Design, special issues dedicated to Professor Haruo Hosoya on the occasion of the 65th birthday: Volume 1 (2002), Number 9 — Volume 2 (2003), Number 6.
4. ^ Tichy, Robert F.; Wagner, Stephan (2005), "Extremal problems for topological indices in combinatorial chemistry" (PDF), Journal of Computational Biology 12 (7): 1004–1013, doi:10.1089/cmb.2005.12.1004.
5. ^ Jerrum, Mark (1987), "Two-dimensional monomer-dimer systems are computationally intractable", Journal of Statistical Physics 48 (1): 121–134, doi:10.1007/BF01010403.
6. ^ Gutman, Ivan (1991), "Polynomials in graph theory", in Bonchev, D.; Rouvray, D. H., Chemical Graph Theory: Introduction and Fundamentals, Mathematical Chemistry 1, Taylor & Francis, pp. 133–176, ISBN 978-0-85626-454-2.
7. ^ Courcelle, B.; Makowsky, J. A.; Rotics, U. (2001), "On the fixed parameter complexity of graph enumeration problems definable in monadic second-order logic" (PDF), Discrete Applied Mathematics 108 (1–2): 23–52, doi:10.1016/S0166-218X(00)00221-3.
8. ^ Makowsky, J. A.; Rotics, Udi; Averbouch, Ilya; Godlin, Benny (2006), "Computing graph polynomials on graphs of bounded clique-width", Proc. 32nd International Workshop on Graph-Theoretic Concepts in Computer Science (WG '06) (PDF), Lecture Notes in Computer Science 4271, Springer-Verlag, pp. 191–204, doi:10.1007/11917496_18, ISBN 978-3-540-48381-6.