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 k≥4, we have

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

Note that

hom(Ck,G)=∑i,j,k,ℓ,…(AijAjk)AkℓAℓm…Aζi=∑i,k,ℓ∑j(AijAjk)AkℓAℓm…Aζi=∑i,k,ℓ[A2]ikAklAℓm…Aζ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