def cal_edges(cut_off_value, matrix):
    """Creates edges for the hierarchical value map (vis.js network) based on Args

    Args:
        cut_off_value ([int]): [cutoff-value]
        matrix ([Array]): [matrix]

    Returns:
        [Array]: [edges]
    """
    edges = []

    counterRow = 0
    for row in matrix:
        counterElement = 0
        for number in row:
            if (number > int(cut_off_value)):
                edges.append({'from': counterRow, 'to': counterElement, 'width': number})
            counterElement = counterElement + 1
        counterRow = counterRow + 1
    return edges