Let $M$ be the adjacency matrix of a directed graph $G$. Is there any known relation between $\det(\textrm{id}-M)$ and the cycles of $G$?
It is easy to see that if $G$ is acyclic then this determinant is $1$ (because we can take $M$ to be strictly upper triangular). What does this measure in general?
Somewhat related: How to tell if a directed graph is acyclic from the adjacency matrix
Using sage I computed these determinants for all the 9608 directed graphs on $5$ vertices and I found that we have $\det(I-M)=1$ iff $G$ is acyclic. Moreover this is the list of possible determinants together with the number of graphs with such determinant:
[(-48, 1), (-40, 1), (-36, 2), (-32, 6), (-30, 3), (-28, 9), (-27, 1),
(-26, 4), (-25, 4), (-24, 36), (-23, 4), (-22, 18), (-21, 9), (-20, 49),
(-19, 12), (-18, 75), (-17, 23), (-16, 144), (-15, 76), (-14, 124),
(-13, 69), (-12, 361), (-11, 116), (-10, 339), (-9, 290), (-8, 676),
(-7, 294), (-6, 917), (-5, 500), (-4, 1195), (-3, 889), (-2, 1144), (-1,
749), (0, 1166), (1, 302)]