def node_boundary(G, nbunch1, nbunch2=None):
    nset1=set(n for n in nbunch1 if n in G)
    bdy=set()
    for n1 in nset1:
        bdy.update(G[n1])
    bdy -= nset1
    if nbunch2 is not None: # else nbunch2 is complement of nbunch1
        bdy &= set(nbunch2)
    return list(bdy)
Return the memcache timeout (expiration) for this key.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/boundary.py/node_boundary--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/context.py/Context._get_memcache_timeout