cycle homomorphism density is given by the trace of the adjacency matrix

[[concept]]
claim

Let Ck be the k-cycle. Let G be a graph with adjacency matrix eigenvalues λ1,λ2,,λn

For k4, we have

t(Ck,G)=(iλik)nk
Proof

Note that

hom(Ck,G)=i,j,k,,(AijAjk)AkAmAζi=i,k,j(AijAjk)AkAmAζi=i,k,[A2]ikAklAmAζi==i[Ak]ii=Tr(Ak)=iλk

Thus t(ck,G)=iλiknk

Note

This implies that cycles can be counted using a convolutional GNN with white input (see Lecture 9) with graph shift operator S=An.

Mentions

File
2025-03-03 graphs lecture 11