First time here? Check out the FAQ!

Ask Your Question
0

Implementation of BEST theorem

asked 1 year ago

Max Alekseyev gravatar image

updated 1 year ago

BEST theorem provides a polynomial-time algorithm for enumeration of Eulerian circuits in a given directed graph. Is there is a readily available implementation of it in Sage?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 1 year ago

Max Alekseyev gravatar image

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())
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 134 times

Last updated: Feb 17 '24