The concept of the hafnian first appeared in works on
 quantum field theory by E. R. Caianiello. However, it also has
 an important combinatorial property: adjacency
 matrix undirected weighted graph is equal to the
 total sum weights perfect matchings this graph.
 In general, use limited complexity
 its computation. paper, we present a method for exact calculation...