Compute the communities probabilities associated at equilibrium for a given transition matrix.

solveMarkov(markov, sparse = TRUE, continuous = FALSE)

Arguments

markov

a transition matrix of a Markov chain.

sparse

a logical. Should a sparse matrix be used? Default value is TRUE (See details).

continuous

a logical. Is markov a continuous time Markov chain? Default is set to FALSE (meaning markov is a discrete one).

Value

A vector of probabilities

Details

If sparse is TRUE, then only the larger eigen values is returned (function eigs_gen() in the armadillo C++ library requires the number of eigen values to be computed and is currently set to 1 in getEigenElementsSp()).