Esempio n. 1
0
def sstar(toplexes, complx):
    ## computes the star of the complex in the ASC generated by the toplexes
    i = 0
    asc = closure(toplexes)

    A = list(complx)
    i += 1
    for simplex in complx:
        B = sh.star(asc,simplex)
        i+= 1
        for b in B:
            if not sh.simpcluded(b,A):
                A.append(b)
    return A
Esempio n. 2
0
def sstar(toplexes, complx):
    i = 0
    asc = closure(toplexes)
    A = list(complx)
    i += 1
#     print A, i
    for simplex in complx:                 ## computes the star of the complex A1
        B = sh.star(asc,simplex)
        i+= 1  
#         print B, i
        for b in B:
#             print b
            if not sh.simpcluded(b,A):
#                 print "true"
                A.append(b) 
    return A