AplK/test_minimal_model.py

21 lines
874 B
Python

from sage.all import *
load('aplK.py')
load('minimalModel.py')
#######################################################
# TESTS
S1 = simplicial_complexes.Sphere(2)
S2 = simplicial_complexes.Sphere(3)
S = S1.wedge(S2, is_mutable=False)
#S = simplicial_complexes.K3Surface()
print("Complejo simplicial")
print(S.facets())
#######################################################
#S = simplicial_complexes.ComplexProjectivePlane()
#######################################################
# S = simplicial_complexes.BrucknerGrunbaumSphere()
#######################################################
# S = simplicial_complexes.ProjectivePlane().wedge(simplicial_complexes.Sphere(2), is_mutable=False)
#######################################################
[sullivan_model, model_morphism, cohomology_correspondence] = minimal_model(S, max_depth=10, max_dim=12)
print(sullivan_model)