def set_node_mat(node_map, node, node_list):
    """
    Adjacent list to adjacent matrix
    :param node_map:
    :param node:
    :param node_list:
    :return: Adjacent matrix
    """
    for x, y, val in node_list:
        node_map[node.index(x)][node.index(y)] = node_map[node.index(y)][
            node.index(x)] = val
