Macaulay2 » Documentation
Packages » AllMarkovBases » countMarkov
next | previous | forward | backward | up | index | toc

countMarkov -- the number of minimal Markov bases of a configuration matrix

Description

This method counts all minimal Markov bases of $A$.

i1 : countMarkov matrix "3,4,5" -- unique Markov basis

o1 = 1
i2 : countMarkov matrix "1,2,3"

o2 = 2
i3 : countMarkov matrix "2,3,5,7,30,31,32"

o3 = 228960

This method does not produce all minimal Markov bases, so it is much faster to use countMarkov A than #markovBases A. This method computes the fiber graphs of $A$, see fiberGraph. The speed of this computation depends on the choice of algorithm, which may be specified using the option FiberAlgorithm. For more details, see computeFiber(...,FiberAlgorithm=>...).

See also

Ways to use countMarkov:

  • countMarkov(Matrix)

For the programmer

The object countMarkov is a method function with options.


The source of this document is in AllMarkovBases.m2:910:0.