def UniqueCombinations(items, n): # utility function
    if n==0:
        yield []
    else:
        for i in xrange(len(items)):
            for cc in UniqueCombinations(items[i+1:],n-1):
                yield [items[i]]+cc
dataset/ETHPy150Open zunzun/pyeq2/Examples/Complex/Polyfunctional_3D.py/UniqueCombinations/original