def build_probability_matrix(graph):
    dimension = len(graph.nodes())
    matrix = empty_matrix((dimension,dimension))

    probability = 1 / float(dimension)
    matrix.fill(probability)

    return matrix
dataset/ETHPy150Open summanlp/textrank/summa/pagerank_weighted.py/build_probability_matrix/original