Macaulay2 » Documentation
Packages » RandomComplexes :: randomSimplicialComplex
next | previous | forward | backward | up | index | toc

randomSimplicialComplex -- the chainComplex over ZZ of a random Stanley-Reisner simplicial complex

Description

We compute the simplicial complex associated to a square free monomial ideal in k+1 variables whose n generators we choose randomly among the square free monomials.

i1 : setRandomSeed "nice example 2";
 -- setting random seed to 12638458417381289481402307077
i2 : C = randomSimplicialComplex(7,20)

       1       8       24       34       21
o2 = ZZ  <-- ZZ  <-- ZZ   <-- ZZ   <-- ZZ
                                        
     0       1       2        3        4

o2 : Complex
i3 : prune HH C

       4
o3 = ZZ
      
     4

o3 : Complex

See also

Ways to use randomSimplicialComplex:

  • randomSimplicialComplex(ZZ,ZZ)

For the programmer

The object randomSimplicialComplex is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RandomComplexes.m2:332:0.