def _lt_attr(node, attr, gens, container):
    """
    Calcs fitness based on the fact that node's target node shall have an attr
    with a value smaller than the given one.
    """
    trg_nd = container.nodes[gens[node]]
    if attr[0] not in trg_nd:
        return 10.1
    if attr[1] < trg_nd[attr[0]]:
        return 10.2
    return 0.0
