コード例 #1
0
ファイル: sh-driver-arun.py プロジェクト: arunsv/sh-arun
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
コード例 #2
0
ファイル: demo_7x6.py プロジェクト: ccapraro/pysheaf
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