def METHOD_NAME(sources, targets, weights):
    """
    Returns a matrix with the weights between the source and target node_ids.
    """
    aa = np.zeros((max(sources) + 1, max(targets) + 1))
    for src, trg, wght in zip(sources, targets, weights):
        aa[src, trg] += wght
    return aa