Quantization of gauge fields, graph polynomials and graph homology