def _build_markov_matrix(sim_matrix, bias_vec, d):
    """
    Builds and returns the markov matrix (matrix to multiply by in the power method)
    using the Biased LexRank formula with cosine similarity.
    """
    markov_matrix = (d * (bias_vec)) + ((1-d) * (sim_matrix))
    return markov_matrix