First time here? Check out the FAQ!
answered 12 years ago
I've added another bit on:
sage: def c(k): ....: if k<3: ....: return 0 ....: if k>2: ....: return sum_of_coeffs(nil(A,k))/(2*k)
where c(k) returns the number of simple cycles in G of length k.
updated 12 years ago
sage:
def c(k): ....: if k<3: ....: return 0 ....: if k>2: ....: return sum_of_coeffs(nil(A,k))/(2*k) sum_of_coeffs(nil(A,k))/(2*k)