def externalizeall(self, ixs):
    'return a list of (or set if given a set) of node ids'
    ids = self._externalizeall(ixs)
    if isinstance(ixs, set):
        return set(ids)
    return list(ids)
return a list of (or set if given a set) of node ids
def externalizeall(self, ixs):
    
    ids = self._externalizeall(ixs)
    if isinstance(ixs, set):
        return set(ids)
    return list(ids)