First time here? Check out the FAQ!
answered 2024-02-17 05:47:53 +0100
Apparently, BEST formula can be implemented as
def BEST_count(G): return G.spanning_trees_count() * prod(factorial(G.in_degree(v)-1) for v in G.vertices())