def matrix_undirected_unweighted(user):
    matrix = matrix_undirected_weighted(user, interaction=None)
    for a, b in combinations(range(len(matrix)), 2):
        if matrix[a][b] > 0 and matrix[b][a] > 0:
            matrix[a][b], matrix[b][a] = 1, 1

    return matrix
Callback for python specific highlighting.
dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/network.py/matrix_undirected_unweighted--crossover with--dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/highlight.py/Highlighter.python_tokenizer