  
  [1X6 Functions and operations for [10XSCSimplicialComplex[1X[0X
  
  
  [1X6.1 Creating an [10XSCSimplicialComplex[1X object from a facet list[0X
  
  This  section  contains functions to generate or to construct new simplicial
  complexes.  Some  of  them  obtain  new  complexes  from existing ones, some
  generate new complexes from scratch.
  
  [1X6.1-1 SCFromFacets[0m
  
  [2X> SCFromFacets( [0X[3Xfacets[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  Constructs  a simplicial complex object from the given facet list. The facet
  list  [3Xfacets[0m  has  to  be  a  duplicate free list (or set) which consists of
  duplicate  free  entries,  which  are  in turn lists or sets. For the vertex
  labels  (i.  e. the entries of the list items of [3Xfacets[0m) an ordering via the
  less-operator  has  to  be defined. Following Section 4.11 of the [5XGAP[0m manual
  this  is  the  case  for objects of the following families: rationals [10XIsRat[0m,
  cyclotomics  [10XIsCyclotomic[0m, finite field elements [10XIsFFE[0m, permutations [10XIsPerm[0m,
  booleans [10XIsBool[0m, characters [10XIsChar[0m and lists (strings) [10XIsList[0m.
  
  Internally the vertices are mapped to the standard labeling 1..n, where n is
  the  number of vertices of the complex and the vertex labels of the original
  complex  are  stored  in the property ''VertexLabels'', see [2XSCLabels[0m ([14X4.2-3[0m)
  and  the  [10XSCRelabel..[0m  functions like [2XSCRelabel[0m ([14X4.2-6[0m) or [2XSCRelabelStandard[0m
  ([14X4.2-7[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets([[1,2,5], [1,4,5], [1,4,6], [2,3,5], [3,4,6], [3,5,6]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 9"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c:=SCFromFacets([["a","b","c"], ["a","b",1], ["a","c",1], ["b","c",1]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 10"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-2 SC[0m
  
  [2X> SC( [0X[3Xfacets[0X[2X ) _______________________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  A  shorter  function  to create a simplicial complex from a facet list, just
  calls [2XSCFromFacets[0m ([14X6.1-1[0m)([3Xfacets[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC(Combinations([1..6],5));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 11"[0X
    [4X  Dim=4[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-3 SCFromDifferenceCycles[0m
  
  [2X> SCFromDifferenceCycles( [0X[3Xdiffcycles[0X[2X ) _______________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Creates  a  simplicial  complex  object  from  the list of difference cycles
  provided.  If [3Xdiffcycles[0m is of length 1 the computation is equivalent to the
  one  in  [2XSCDifferenceCycleExpand[0m ([14X6.4-8[0m). Otherwise the induced modulus (the
  sum  of all entries of a difference cycle) of all cycles has to be equal and
  the union of all expanded difference cycles is returned.
  
  A  n-dimensional  difference cycle D = (d_1 : ... : d_n+1) induces a simplex
  Delta  =  ( v_1 , ... , v_n+1 ) by v_1 = d_1, v_i = v_i-1 + d_i and a cyclic
  group  action  by  Z_sigma  where  sigma  = sum d_i is the modulus of D. The
  function returns the Z_sigma-orbit of Delta.
  
  Note  that modulo operations in [5XGAP[0m are often a little bit cumbersome, since
  all integer ranges usually start from 1.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromDifferenceCycles([[1,1,6],[2,3,3]]);;[0X
    [4X gap> c.F;[0X
    [4X [ 8, 24, 16 ][0X
    [4X gap> c.Homology;[0X
    [4X [ [ 0, [  ] ], [ 2, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> c.Chi;[0X
    [4X 0[0X
    [4X gap> c.HasBoundary;[0X
    [4X false[0X
    [4X gap> SCIsPseudoManifold(c);[0X
    [4X true[0X
    [4X gap> SCIsManifold(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.1-4 SCFromGenerators[0m
  
  [2X> SCFromGenerators( [0X[3Xgroup, generators[0X[2X ) ______________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  Constructs  a  simplicial complex object from the set of [3Xgenerators[0m on which
  the  group  [3Xgroup[0m  acts, i.e. a complex which has [3Xgroup[0m as a subgroup of the
  automorphism  group  and  a  facet  list  that  consists of the [3Xgroup[0m-orbits
  specified  by  the  list  of representatives passed in [3Xgenerators[0m. Note that
  [3Xgroup[0m  is  not  stored  as an attribute of the resulting complex as it might
  just be a subgroup of the actual automorphism group. Internally calls [10XOrbits[0m
  and [2XSCFromFacets[0m ([14X6.1-1[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> #group: AGL(1,7) of order 42[0X
    [4X gap> G:=Group([(2,6,5,7,3,4),(1,3,5,7,2,4,6)]);;[0X
    [4X gap> c:=SCFromGenerators(G,[[ 1, 2, 4 ]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="complex from generators under group (C7 : C3) : C2"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCLib.DetermineTopologicalType(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, [0X
    [4X                    IsPseudoManifold, Name, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="complex from generators under group (C7 : C3) : C2"[0X
    [4X  Dim=2[0X
    [4X  HasBoundary=false[0X
    [4X  IsPseudoManifold=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.2 Generating some standard triangulations[0X
  
  [1X6.2-1 SCBdCrossPolytope[0m
  
  [2X> SCBdCrossPolytope( [0X[3Xd[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  boundary  of  the  d-dimensional  cross  polytope  beta^d, a
  centrally symmetric combinatorial d-1-sphere.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBdCrossPolytope(3); # the octahedron[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, EulerCharacteristic, FacetsEx, HasBoundary, [0X
    [4X                    Homology, IsConnected, IsStronglyConnected, Name, [0X
    [4X                    NumFaces[], TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="Bd(\beta^3)"[0X
    [4X  Dim=2[0X
    [4X  EulerCharacteristic=2[0X
    [4X  HasBoundary=false[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  TopologicalType="S^2"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-2 SCBdCyclicPolytope[0m
  
  [2X> SCBdCyclicPolytope( [0X[3Xd, n[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  boundary  complex  of  the  [3Xd[0m-dimensional cyclic polytope (a
  combinatorial d-1-sphere) on [3Xn[0m vertices, where n>= d+2.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBdCyclicPolytope(3,8); [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, EulerCharacteristic, FacetsEx, HasBoundary, [0X
    [4X                    Homology, IsConnected, IsStronglyConnected, Name, [0X
    [4X                    NumFaces[], TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="Bd(C_3(8))"[0X
    [4X  Dim=2[0X
    [4X  EulerCharacteristic=2[0X
    [4X  HasBoundary=false[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  TopologicalType="S^2"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-3 SCBdSimplex[0m
  
  [2X> SCBdSimplex( [0X[3Xd[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates the boundary of the d-simplex Delta^d, a combinatorial d-1-sphere.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBdSimplex(5);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupSize, [0X
    [4X                    AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Dim, [0X
    [4X                    EulerCharacteristic, FacetsEx, GeneratorsEx, [0X
    [4X                    HasBoundary, Homology, IsConnected, [0X
    [4X                    IsStronglyConnected, Name, NumFaces[], [0X
    [4X                    TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="S^4_6"[0X
    [4X  Dim=4[0X
    [4X  AutomorphismGroupSize=720[0X
    [4X  AutomorphismGroupStructure="S6"[0X
    [4X  AutomorphismGroupTransitivity=6[0X
    [4X  EulerCharacteristic=2[0X
    [4X  HasBoundary=false[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  TopologicalType="S^4"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-4 SCEmpty[0m
  
  [2X> SCEmpty( [0X[3X[0X[2X ) ______________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  an  empty  complex (of dimension -1), i. e. a [10XSCSimplicialComplex[0m
  object with empty facet list.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCEmpty();[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="empty complex"[0X
    [4X  Dim=-1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-5 SCSimplex[0m
  
  [2X> SCSimplex( [0X[3Xd[0X[2X ) ___________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates the [3Xd[0m-simplex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCSimplex(3);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, EulerCharacteristic, FacetsEx, Name, [0X
    [4X                    NumFaces[], TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="B^3_4"[0X
    [4X  Dim=3[0X
    [4X  EulerCharacteristic=1[0X
    [4X  TopologicalType="B^3"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-6 SCFVectorBdCrossPolytope[0m
  
  [2X> SCFVectorBdCrossPolytope( [0X[3Xd[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  a list of integers of size [10Xd + 1[0m upon success, [9Xfail[0m otherwise.
  
  Computes the f-vector of the d-dimensional cross polytope without generating
  the underlying complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> SCFVectorBdCrossPolytope(50);[0X
    [4X[ 100, 4900, 156800, 3684800, 67800320, 1017004800, 12785203200, [0X
    [4X  137440934400, 1282782054400, 10518812846080, 76500457062400, [0X
    [4X  497252970905600, 2907017368371200, 15365663232819200, 73755183517532160, [0X
    [4X  322678927889203200, 1290715711556812800, 4732624275708313600, [0X
    [4X  15941471244491161600, 49418560857922600960, 141195888165493145600, [0X
    [4X  372243705163572838400, 906332499528699084800, 2039248123939572940800, [0X
    [4X  4241636097794311716864, 8156992495758291763200, 14501319992459185356800, [0X
    [4X  23823597130468661657600, 36146147370366245273600, 50604606318512743383040, [0X
    [4X  65296266217435797913600, 77539316133205010022400, 84588344872587283660800, [0X
    [4X  84588344872587283660800, 77337915312079802204160, 64448262760066501836800, [0X
    [4X  48771658304915190579200, 33370081998099867238400, 20535435075753764454400, [0X
    [4X  11294489291664570449920, 5509506971543692902400, 2361217273518725529600, [0X
    [4X  878592473867432755200, 279552150776001331200, 74547240206933688320, [0X
    [4X  16205921784116019200, 2758454771764428800, 344806846470553600, [0X
    [4X  28147497671065600, 1125899906842624 ][0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-7 SCFVectorBdCyclicPolytope[0m
  
  [2X> SCFVectorBdCyclicPolytope( [0X[3Xd, n[0X[2X ) ________________________________[0Xfunction
  [6XReturns:[0X  a list of integers of size [10Xd+1[0m upon success, [9Xfail[0m otherwise.
  
  Computes  the  f-vector  of the [3Xd[0m-dimensional cyclic polytope on [3Xn[0m vertices,
  n>= d+2, without generating the underlying complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> SCFVectorBdCyclicPolytope(25,198); [0X
    [4X[ 198, 19503, 1274196, 62117055, 2410141734, 77526225777, 2126433621312, [0X
    [4X  50768602708824, 1071781612741840, 20256672480820776, 346204947854027808, [0X
    [4X  5395027104058600008, 48354596155522298656, 262068846498922699590, [0X
    [4X  940938105142239825104, 2379003007642628680027, 4396097923113038784642, [0X
    [4X  6062663500381642763609, 6294919173643129209180, 4911378208855785427761, [0X
    [4X  2840750019404460890298, 1183225500922302444568, 335951678686835900832, [0X
    [4X  58265626173398052500, 4661250093871844200 ][0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-8 SCFVectorBdSimplex[0m
  
  [2X> SCFVectorBdSimplex( [0X[3Xd[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a list of integers of size [10Xd + 1[0m upon success, [9Xfail[0m otherwise.
  
  Computes  the  f-vector  of  the d-simplex without generating the underlying
  complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCFVectorBdSimplex(100);[0X
    [4X [ 101, 5050, 166650, 4082925, 79208745, 1267339920, 17199613200, [0X
    [4X   202095455100, 2088319702700, 19212541264840, 158940114100040, [0X
    [4X   1192050855750300, 8160963550905900, 51297485177122800, 297525414027312240, [0X
    [4X   1599199100396803290, 7995995501984016450, 37314645675925410100, [0X
    [4X   163006083742200475700, 668324943343021950370, 2577824781465941808570, [0X
    [4X   9373908296239788394800, 32197337191432316660400, 104641345872155029146300, [0X
    [4X   322295345286237489770604, 942094086221309585483304, [0X
    [4X   2616928017281415515231400, 6916166902815169575968700, [0X
    [4X   17409661513983013070541900, 41783187633559231369300560, [0X
    [4X   95696978128474368620010960, 209337139656037681356273975, [0X
    [4X   437704928371715151926754675, 875409856743430303853509350, [0X
    [4X   1675784582908852295948146470, 3072271735332895875904935195, [0X
    [4X   5397234129638871133346507775, 9090078534128625066688855200, [0X
    [4X   14683973016669317415420458400, 22760158175837441993901710520, [0X
    [4X   33862674359172779551902544920, 48375249084532542217003635600, [0X
    [4X   66375341767149302111702662800, 87494768693060443692698964600, [0X
    [4X   110826707011209895344085355160, 134919469404951176940625649760, [0X
    [4X   157884485473879036845412994400, 177620046158113916451089618700, [0X
    [4X   192119641762857909630770403900, 199804427433372226016001220056, [0X
    [4X   199804427433372226016001220056, 192119641762857909630770403900, [0X
    [4X   177620046158113916451089618700, 157884485473879036845412994400, [0X
    [4X   134919469404951176940625649760, 110826707011209895344085355160, [0X
    [4X   87494768693060443692698964600, 66375341767149302111702662800, [0X
    [4X   48375249084532542217003635600, 33862674359172779551902544920, [0X
    [4X   22760158175837441993901710520, 14683973016669317415420458400, [0X
    [4X   9090078534128625066688855200, 5397234129638871133346507775, [0X
    [4X   3072271735332895875904935195, 1675784582908852295948146470, [0X
    [4X   875409856743430303853509350, 437704928371715151926754675, [0X
    [4X   209337139656037681356273975, 95696978128474368620010960, [0X
    [4X   41783187633559231369300560, 17409661513983013070541900, [0X
    [4X   6916166902815169575968700, 2616928017281415515231400, [0X
    [4X   942094086221309585483304, 322295345286237489770604, [0X
    [4X   104641345872155029146300, 32197337191432316660400, 9373908296239788394800, [0X
    [4X   2577824781465941808570, 668324943343021950370, 163006083742200475700, [0X
    [4X   37314645675925410100, 7995995501984016450, 1599199100396803290, [0X
    [4X   297525414027312240, 51297485177122800, 8160963550905900, 1192050855750300, [0X
    [4X   158940114100040, 19212541264840, 2088319702700, 202095455100, 17199613200, [0X
    [4X   1267339920, 79208745, 4082925, 166650, 5050, 101 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.3 Generating infinite series of transitive triangulations[0X
  
  [1X6.3-1 SCSeriesAGL[0m
  
  [2X> SCSeriesAGL( [0X[3Xp[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  a  permutation  group  and  a  list  of  5-tuples of integers upon
            success, [9Xfail[0m otherwise.
  
  For  a given prime [3Xp[0m the automorphism group (AGL(1,p)) and the generators of
  all  members  of  the series of 2-transitive combinatorial 4-pseudomanifolds
  with  [3Xp[0m  vertices from [Spr10a], Section 5.2, is computed. The affine linear
  group AGL(1,p) is returned as the first argument. If no member of the series
  with [3Xp[0m vertices exists only the group is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> gens:=SCSeriesAGL(17);[0X
    [4X [ AGL(1,17), [ [ 1, 2, 4, 8, 16 ] ] ][0X
    [4X gap> c:=SCFromGenerators(gens[1],gens[2]);;[0X
    [4X gap> SCIsManifold(SCLink(c,1));[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> List([19..23],x->SCSeriesAGL(x));     [0X
    [4X #I  SCSeriesAGL: argument must be a prime > 13.[0X
    [4X #I  SCSeriesAGL: argument must be a prime > 13.[0X
    [4X #I  SCSeriesAGL: argument must be a prime > 13.[0X
    [4X [ [ AGL(1,19), [ [ 1, 2, 10, 12, 17 ] ] ], fail, fail, fail, [0X
    [4X   [ AGL(1,23), [ [ 1, 2, 7, 9, 19 ], [ 1, 2, 4, 8, 22 ] ] ] ][0X
    [4X gap> for i in [80000..80100] do if IsPrime(i) then Print(i,"\n"); fi; od;[0X
    [4X 80021[0X
    [4X 80039[0X
    [4X 80051[0X
    [4X 80071[0X
    [4X 80077[0X
    [4X gap> SCSeriesAGL(80021);                                                 [0X
    [4X AGL(1,80021)[0X
    [4X gap> SCSeriesAGL(80039);                                                 [0X
    [4X [ AGL(1,80039), [ [ 1, 2, 6496, 73546, 78018 ] ] ][0X
    [4X gap> SCSeriesAGL(80051);                                                 [0X
    [4X [ AGL(1,80051), [ [ 1, 2, 31498, 37522, 48556 ] ] ][0X
    [4X gap> SCSeriesAGL(80071);                                                 [0X
    [4X AGL(1,80071)[0X
    [4X gap> SCSeriesAGL(80077);                                                 [0X
    [4X [ AGL(1,80077), [ [ 1, 2, 4126, 39302, 40778 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-2 SCSeriesBdHandleBody[0m
  
  [2X> SCSeriesBdHandleBody( [0X[3Xd, n[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  [10XSCSeriesBdHandleBody(d,n)[0m generates a transitive d-dimensional sphere bundle
  (d  >= 2) with n vertices (n >= 2d + 3) which coincides with the boundary of
  [2XSCSeriesHandleBody[0m  ([14X6.3-6[0m)[10X(d,n)[0m.  The  sphere  bundle is orientable if d is
  even  or  if  d  is  odd  and  n  is  even,  otherwise it is not orientable.
  Internally calls [2XSCFromDifferenceCycles[0m ([14X6.1-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesBdHandleBody(2,7);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, IsOrientable, Name, TopologicalType, [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="Sphere bundle S^1 x S^1"[0X
    [4X  Dim=2[0X
    [4X  IsOrientable=true[0X
    [4X  TopologicalType="S^1 x S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCLib.DetermineTopologicalType(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, [0X
    [4X                    IsOrientable, IsPseudoManifold, Name, SkelExs[], [0X
    [4X                    TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="Sphere bundle S^1 x S^1"[0X
    [4X  Dim=2[0X
    [4X  HasBoundary=false[0X
    [4X  IsOrientable=true[0X
    [4X  IsPseudoManifold=true[0X
    [4X  TopologicalType="S^1 x S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsIsomorphic(c,SCSeriesHandleBody(3,7).Boundary);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-3 SCSeriesC2n[0m
  
  [2X> SCSeriesC2n( [0X[3Xn[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  combinatorial 3-manifold C_2n, n >= 8, with 2n vertices from
  [Spr10a],  Section 4.5.3 and Section 5.2. The complex is homeomorphic to S^2
  x  S^1  for  n  odd  and homeomorphic to S^2 dtimes S^1 in case n is an even
  number.  In  the  latter  case  C_2n  is isomorphic to D_2n from [2XSCSeriesD2n[0m
  ([14X6.3-5[0m). The complexes are believed to appear as the vertex links of some of
  the members of the series of 2-transitive 4-pseudomanifolds from [2XSCSeriesAGL[0m
  ([14X6.3-1[0m). Internally calls [2XSCFromDifferenceCycles[0m ([14X6.1-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesC2n(8);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="C_16 = { (1:1:3:11),(1:1:11:3),(1:3:1:11),(2:3:2:9),(2:5:2:7) }"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^2 ~ S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCGenerators(c);  [0X
    [4X [ [ [ 1, 2, 3, 6 ], 32 ], [ [ 1, 2, 5, 6 ], 16 ], [ [ 1, 3, 6, 8 ], 16 ], [0X
    [4X   [ [ 1, 3, 8, 10 ], 16 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesC2n(8);;[0X
    [4X gap> d:=SCSeriesD2n(8); [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="D_16 = { (1:1:1:13),(1:2:11:2),(3:4:5:4),(2:3:4:7),(2:7:4:3) }"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^2 ~ S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsIsomorphic(c,d);[0X
    [4X true[0X
    [4X gap> c:=SCSeriesC2n(11);;[0X
    [4X gap> d:=SCSeriesD2n(11);;[0X
    [4X gap> c.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ], [ 1, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> d.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ], [ 0, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-4 SCSeriesCSTSurface[0m
  
  [2X> SCSeriesCSTSurface( [0X[3Xl[, j], 2k[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  [10XSCSeriesCSTSurface(l,j,2k)[0m  generates  the  centrally  symmetric  transitive
  (cst) surface S_(l,j,2k), [10XSCSeriesCSTSurface(l,2k)[0m generates the cst surface
  S_(l,2k) from [Spr10b], Section 4.4.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCSeriesCSTSurface(2,4,14);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="cst surface S_{(2,4,14)} = { (2:4:8),(2:8:4) }"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> last.Homology;[0X
    [4X [ [ 1, [  ] ], [ 4, [  ] ], [ 2, [  ] ] ][0X
    [4X gap> SCSeriesCSTSurface(2,10);  [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="cst surface S_{(2,10)} = { (2:2:6),(3:3:4) }"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> last.Homology;                    [0X
    [4X [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-5 SCSeriesD2n[0m
  
  [2X> SCSeriesD2n( [0X[3Xn[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  combinatorial  3-manifold  D_2n,  n  >=  8,  n <> 9, with 2n
  vertices  from  [Spr10a],  Section  4.5.3  and  Section  5.2. The complex is
  homeomorphic  to  S^2  dtimes  S^1.  In  the  case  that  n  is even D_2n is
  isomorphic  to  C_2n from [2XSCSeriesC2n[0m ([14X6.3-3[0m). The complexes are believed to
  appear  as  the  vertex  links  of  some  of  the  members  of the series of
  2-transitive  4-pseudomanifolds  from  [2XSCSeriesAGL[0m ([14X6.3-1[0m). Internally calls
  [2XSCFromDifferenceCycles[0m ([14X6.1-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> d:=SCSeriesD2n(15);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="D_30 = { (1:1:1:27),(1:2:25:2),(3:11:5:11),(2:3:11:14),(2:14:11:3) }"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^2 ~ S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCAutomorphismGroup(d);  [0X
    [4X TransitiveGroup(30,14) = t30n14[0X
    [4X gap> StructureDescription(last);[0X
    [4X "D60"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesC2n(8);;[0X
    [4X gap> d:=SCSeriesD2n(8); [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="D_16 = { (1:1:1:13),(1:2:11:2),(3:4:5:4),(2:3:4:7),(2:7:4:3) }"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^2 ~ S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsIsomorphic(c,d);[0X
    [4X true[0X
    [4X gap> c:=SCSeriesC2n(11);;[0X
    [4X gap> d:=SCSeriesD2n(11);;[0X
    [4X gap> c.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ], [ 1, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> d.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ], [ 0, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-6 SCSeriesHandleBody[0m
  
  [2X> SCSeriesHandleBody( [0X[3Xd, n[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  [10XSCSeriesHandleBody(d,n)[0m  generates a transitive d-dimensional handle body (d
  >=  3)  with n vertices (n >= 2d + 1). The handle body is orientable if d is
  odd  or  if  d  and  n are even, otherwise it is not orientable. The complex
  equals  the  difference  cycle  (1  :  ... : 1 : n-d) To obtain the boundary
  complexes  of  [10XSCSeriesHandleBody(d,n)[0m use the function [2XSCSeriesBdHandleBody[0m
  ([14X6.3-2[0m). Internally calls [2XSCFromDifferenceCycles[0m ([14X6.1-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesHandleBody(3,7);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, IsOrientable, Name, TopologicalType, [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="Handle body B^2 x S^1"[0X
    [4X  Dim=3[0X
    [4X  IsOrientable=true[0X
    [4X  TopologicalType="B^2 x S^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCAutomorphismGroup(c);    [0X
    [4X PrimitiveGroup(7,2) = D(2*7)[0X
    [4X gap> bd:=SCBoundary(c);;[0X
    [4X gap> SCAutomorphismGroup(bd);[0X
    [4X PrimitiveGroup(7,4) = AGL(1, 7)[0X
    [4X gap> SCIsIsomorphic(bd,SCSeriesBdHandleBody(2,7));[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-7 SCSeriesK[0m
  
  [2X> SCSeriesK( [0X[3Xi, k[0X[2X ) ________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  [3Xk[0m-th  member (k >= 0) of the series [3XK^i[0m (1 <= i <= 114) from
  [Spr10a].  The  114  series  describe a complete classification of all dense
  series  (i.  e.  there is a member of the series for every integer, f_0 (K^i
  (k+1)  )  =  f_0  (K^i (k)) +1) of cyclic 3-manifolds with a fixed number of
  difference  cycles  and  at least one member with less than 20 vertices. See
  [2XSCSeriesL[0m ([14X6.3-9[0m) for a list of series of order 2.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> cc:=List([1..114],x->SCSeriesK(x,0));;                                                                                                                                                                                                  [0X
    [4X gap> Set(List(cc,x->x.F));                                                                                                                                                                                                                        [0X
    [4X [ [ 11, 55, 88, 44 ], [ 13, 65, 104, 52 ], [ 13, 78, 130, 65 ], [0X
    [4X   [ 15, 90, 150, 75 ], [ 15, 105, 180, 90 ], [ 17, 102, 170, 85 ], [0X
    [4X   [ 17, 119, 204, 102 ], [ 17, 136, 238, 119 ], [ 19, 133, 228, 114 ], [0X
    [4X   [ 19, 152, 266, 133 ], [ 19, 171, 304, 152 ] ][0X
    [4X gap> cc:=List([1..114],x->SCSeriesK(x,10));;[0X
    [4X gap> gap> cc:=List([1..114],x->SCSeriesK(x,10));;[0X
    [4X gap> Set(List(cc,x->x.Homology));[0X
    [4X [ [ [ 0, [  ] ], [ 1, [  ] ], [ 0, [ 2 ] ], [ 0, [  ] ] ], [0X
    [4X   [ [ 0, [  ] ], [ 2, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ], [0X
    [4X   [ [ 0, [  ] ], [ 3, [  ] ], [ 3, [  ] ], [ 1, [  ] ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-8 SCSeriesKu[0m
  
  [2X> SCSeriesKu( [0X[3Xn[0X[2X ) __________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  the symmetric orientable sphere bundle Ku(n) with 4n vertices from
  [Spr10a],  Section  4.5.2.  The series is defined as a generalization of the
  slicings from [Spr10a], Section 3.3.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesKu(4);                                    [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="Sl_16 = G{ [1,2,5,9],[1,2,9,10],[1,5,9,16] }"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCSlicing(c,[[1,2,3,4,9,10,11,12],[5,6,7,8,13,14,15,16]]);[0X
    [4X [NormalSurface[0X
    [4X [0X
    [4X  Properties known: ConnectedComponents, Dim, EulerCharacteristic, FVector, Fac\[0X
    [4X etsEx, Genus, IsConnected, IsOrientable, NSTriangulation, Name, TopologicalTyp\[0X
    [4X e, Vertices.[0X
    [4X [0X
    [4X  Name="slicing [ [ 1, 2, 3, 4, 9, 10, 11, 12 ], [ 5, 6, 7, 8, 13, 14, 15, 16 ]\[0X
    [4X  ] of Sl_16 = G{ [1,2,5,9],[1,2,9,10],[1,5,9,16] }"[0X
    [4X  Dim=2[0X
    [4X  FVector=[ 32, 80, 32, 16 ][0X
    [4X  EulerCharacteristic=0[0X
    [4X  IsOrientable=true[0X
    [4X  TopologicalType="T^2"[0X
    [4X [0X
    [4X /NormalSurface][0X
    [4X gap> Mminus:=SCSpan(c,[1,2,3,4,9,10,11,12]);;                  [0X
    [4X gap> Mplus:=SCSpan(c,[5,6,7,8,13,14,15,16]);;                  [0X
    [4X gap> SCCollapseGreedy(Mminus).Facets;[0X
    [4X [ [ 9, 10 ], [ 9, 12 ], [ 10, 11 ], [ 11, 12 ] ][0X
    [4X gap> SCCollapseGreedy(Mplus).Facets; [0X
    [4X [ [ 13, 14 ], [ 13, 16 ], [ 14, 15 ], [ 15, 16 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-9 SCSeriesL[0m
  
  [2X> SCSeriesL( [0X[3Xi, k[0X[2X ) ________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  [3Xk[0m-th  member  (k  >= 0) of the series [3XL^i[0m, 1 <= i <= 18 from
  [Spr10a].  The 18 series describe a complete classification of all series of
  cyclic  3-manifolds  with a fixed number of difference cycles of order 2 (i.
  e.  there is a member of the series for every second integer, f_0 (L^i (k+1)
  )  =  f_0  (L^i  (k)) +2) and at least one member with less than 15 vertices
  where  each  series does not appear as a sub series of one of the series K^i
  from [2XSCSeriesK[0m ([14X6.3-7[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> cc:=List([1..18],x->SCSeriesL(x,0));;[0X
    [4X gap> Set(List(cc,x->x.F));[0X
    [4X [ [ 10, 45, 70, 35 ], [ 12, 60, 96, 48 ], [ 12, 66, 108, 54 ], [0X
    [4X   [ 14, 77, 126, 63 ], [ 14, 84, 140, 70 ], [ 14, 91, 154, 77 ] ][0X
    [4X gap> cc:=List([1..18],x->SCSeriesL(x,10));; [0X
    [4X gap> Set(List(cc,x->x.IsManifold));[0X
    [4X [ true ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-10 SCSeriesLe[0m
  
  [2X> SCSeriesLe( [0X[3Xk[0X[2X ) __________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates  the  [3Xk[0m-th member (k >= 7) of the series [10XLe[0m from [Spr10a], Section
  4.5.1.  The  series can be constructed as the generalization of the boundary
  of a genus 1 handlebody decomposition of the manifold [10Xmanifold_3_14_1_5[0m from
  the classification in [Lut03].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCSeriesLe(7);                     [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="Le_14 = { (1:1:1:11),(1:2:4:7),(1:4:2:7),(2:1:4:7),(2:5:2:5),(2:4:2:6) \[0X
    [4X }"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> d:=SCLib.DetermineTopologicalType(c);;[0X
    [4X gap> SCReference(d);[0X
    [4X "manifold_3_14_1_5 in F.H.Lutz: 'The Manifold Page', http://www.math.tu-berlin\[0X
    [4X .de/diskregeom/stellar/,\r\nF.H.Lutz: 'Triangulated manifolds with few vertice\[0X
    [4X s and vertex-transitive group actions', Doctoral Thesis TU Berlin 1999, Shaker\[0X
    [4X -Verlag, Aachen 1999"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.3-11 SCSeriesPrimeTorus[0m
  
  [2X> SCSeriesPrimeTorus( [0X[3Xl, j, p[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Generates the well known triangulated torus { (l:j:p-l-j),(l:p-l-j:j) } with
  p vertices, 3p edges and 2p triangles where j has to be greater than l and p
  must be any prime number greater than 6.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> l:=List([2..19],x->SCSeriesPrimeTorus(1,x,41));; [0X
    [4X gap> Set(List(l,x->SCHomology(x)));[0X
    [4X [ [ [ 0, [  ] ], [ 2, [  ] ], [ 1, [  ] ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.4 Generating new complexes from old[0X
  
  [1X6.4-1 SCCartesianPower[0m
  
  [2X> SCCartesianPower( [0X[3Xcomplex, n[0X[2X ) _____________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  The  new  complex  is  PL-homeomorphic  to  n times the cartesian product of
  [3Xcomplex[0m,  of  dimensions  n  *  d and has f_d^n * n * frac2n-12^n-1}! facets
  where  d  denotes  the  dimension  and  f_d  denotes the number of facets of
  [3Xcomplex[0m.  Note  that  the complex returned by the function is not the n-fold
  cartesian   product   [3Xcomplex[0m^n  of  [3Xcomplex[0m  (which,  in  general,  is  not
  simplicial) but a simplicial subdivision of [3Xcomplex[0m^n.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(2);;[0X
    [4X gap> 4torus:=SCCartesianPower(c,4);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="(S^1_3)^4"[0X
    [4X  Dim=4[0X
    [4X  TopologicalType="(S^1)^4"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> 4torus.Homology;[0X
    [4X [ [ 0, [  ] ], [ 4, [  ] ], [ 6, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> 4torus.Chi;[0X
    [4X 0[0X
    [4X gap> 4torus.F;[0X
    [4X [ 81, 1215, 4050, 4860, 1944 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-2 SCCartesianProduct[0m
  
  [2X> SCCartesianProduct( [0X[3Xcomplex1, complex2[0X[2X ) ___________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  the  simplicial  cartesian  product of [3Xcomplex1[0m and [3Xcomplex2[0m where
  [3Xcomplex1[0m  and  [3Xcomplex2[0m  are pure, simplicial complexes. The original vertex
  labeling  of [3Xcomplex1[0m and [3Xcomplex2[0m is changed into the standard one. The new
  complex  has  vertex  labels  of  type  [v_i,  v_j] where v_i is a vertex of
  [3Xcomplex1[0m and v_j is a vertex of [3Xcomplex2[0m.
  
  If  n_i,  i=1,2, are the number facets and d_i, i=1,2, are the dimensions of
  [3Xcomplexi[0m,  then  the  new complex has n_1 * n_2 * d_1+d_2 choose d_1 facets.
  The  number of vertices of the new complex equals the product of the numbers
  of vertices of the arguments.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c1:=SCBdSimplex(2);;[0X
    [4X gap> c2:=SCBdSimplex(3);;[0X
    [4X gap> c3:=SCCartesianProduct(c1,c2);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="S^1_3xS^2_4"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^1xS^1"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c3.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ], [ 1, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> c3.F;[0X
    [4X [ 12, 48, 72, 36 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-3 SCConnectedComponents[0m
  
  [2X> SCConnectedComponents( [0X[3Xcomplex[0X[2X ) ___________________________________[0Xmethod
  [6XReturns:[0X  a  list  of  simplicial complexes of type [10XSCSimplicialComplex[0m upon
            success, [9Xfail[0m otherwise.
  
  Computes all connected components of an arbitrary simplicial complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[3,4,5],[4,5,6,7,8]]);;[0X
    [4X gap> SCRename(c,"connected complex");;[0X
    [4X gap> SCConnectedComponents(c);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Connected component #1 of connected complex"[0X
    [4X      Dim=4[0X
    [4X     [0X
    [4X     /SimplicialComplex] ][0X
    [4X gap> c:=SC([[1,2,3],[4,5],[6,7,8]]);;[0X
    [4X gap> SCRename(c,"non-connected complex");;[0X
    [4X gap> SCConnectedComponents(c);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Connected component #1 of non-connected complex"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Connected component #2 of non-connected complex"[0X
    [4X      Dim=1[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Connected component #3 of non-connected complex"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-4 SCConnectedProduct[0m
  
  [2X> SCConnectedProduct( [0X[3Xcomplex, n[0X[2X ) ___________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  If  n  >=  2,  the  function internally calls 1 x [2XSCConnectedSum[0m ([14X6.4-5[0m) and
  (n-2) x [2XSCConnectedSumMinus[0m ([14X6.4-6[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"){[1..6]};[0X
    [4X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[0X
    [4X   [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ] ][0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> genus10:=SCConnectedProduct(torus,10);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (\[0X
    [4X VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> genus10.Chi;[0X
    [4X -18[0X
    [4X gap> genus10.F;[0X
    [4X [ 43, 183, 122 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-5 SCConnectedSum[0m
  
  [2X> SCConnectedSum( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  In a lexicographic ordering the smallest facet of both [3Xcomplex1[0m and [3Xcomplex2[0m
  is  removed  and  the  complexes  are  glued  together  along  the resulting
  boundaries.  The  bijection  used to identify the vertices of the boundaries
  differs   from   the   one   chosen  in  [2XSCConnectedSumMinus[0m  ([14X6.4-6[0m)  by  a
  transposition.  Thus,  the  topological  type of [10XSCConnectedSum[0m is different
  from  the  one of [2XSCConnectedSumMinus[0m ([14X6.4-6[0m) whenever [3Xcomplex1[0m and [3Xcomplex2[0m
  do not allow an orientation reversing homeomorphism.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"){[1..6]};[0X
    [4X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[0X
    [4X   [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ] ][0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> genus2:=SCConnectedSum(torus,torus);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="T^2 (VT)#+-T^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> genus2.Homology;[0X
    [4X [ [ 0, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> genus2.Chi;[0X
    [4X -2[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("CP^2");[0X
    [4X [ [ 16, "CP^2 (VT)" ], [ 99, "CP^2#-CP^2" ], [ 100, "CP^2#CP^2" ], [0X
    [4X   [ 400, "CP^2#(S^2xS^2)" ], [ 2486, "Gaifullin CP^2" ], [0X
    [4X   [ 4401, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0X
    [4X gap> cp2:=SCLib.Load(last[1][1]);;[0X
    [4X gap> c1:=SCConnectedSum(cp2,cp2);;[0X
    [4X gap> c2:=SCConnectedSumMinus(cp2,cp2);;[0X
    [4X gap> c1.F=c2.F;[0X
    [4X true[0X
    [4X gap> c1.ASDet=c2.ASDet;[0X
    [4X true[0X
    [4X gap> SCIsIsomorphic(c1,c2);[0X
    [4X false[0X
    [4X gap> PrintArray(SCIntersectionForm(c1));[0X
    [4X [ [  1,  0 ],[0X
    [4X   [  0,  1 ] ][0X
    [4X gap> PrintArray(SCIntersectionForm(c2));[0X
    [4X [ [   1,   0 ],[0X
    [4X   [   0,  -1 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-6 SCConnectedSumMinus[0m
  
  [2X> SCConnectedSumMinus( [0X[3Xcomplex1, complex2[0X[2X ) __________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  In a lexicographic ordering the smallest facet of both [3Xcomplex1[0m and [3Xcomplex2[0m
  is  removed  and  the  complexes  are  glued  together  along  the resulting
  boundaries.  The  bijection  used to identify the vertices of the boundaries
  differs  from  the  one chosen in [2XSCConnectedSum[0m ([14X6.4-5[0m) by a transposition.
  Thus,  the topological type of [10XSCConnectedSumMinus[0m is different from the one
  of  [2XSCConnectedSum[0m  ([14X6.4-5[0m)  whenever  [3Xcomplex1[0m and [3Xcomplex2[0m do not allow an
  orientation reversing homeomorphism.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"){[1..6]};[0X
    [4X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[0X
    [4X   [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ] ][0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> genus2:=SCConnectedSumMinus(torus,torus);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="T^2 (VT)#+-T^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> genus2.Homology;[0X
    [4X [ [ 0, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> genus2.Chi;[0X
    [4X -2[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("CP^2");[0X
    [4X [ [ 16, "CP^2 (VT)" ], [ 99, "CP^2#-CP^2" ], [ 100, "CP^2#CP^2" ], [0X
    [4X   [ 400, "CP^2#(S^2xS^2)" ], [ 2486, "Gaifullin CP^2" ], [0X
    [4X   [ 4401, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0X
    [4X gap> cp2:=SCLib.Load(last[1][1]);;[0X
    [4X gap> c1:=SCConnectedSum(cp2,cp2);;[0X
    [4X gap> c2:=SCConnectedSumMinus(cp2,cp2);;[0X
    [4X gap> c1.F=c2.F;[0X
    [4X true[0X
    [4X gap> c1.ASDet=c2.ASDet;[0X
    [4X true[0X
    [4X gap> SCIsIsomorphic(c1,c2);[0X
    [4X false[0X
    [4X gap> PrintArray(SCIntersectionForm(c1));[0X
    [4X [ [  1,  0 ],[0X
    [4X   [  0,  1 ] ][0X
    [4X gap> PrintArray(SCIntersectionForm(c2));[0X
    [4X [ [   1,   0 ],[0X
    [4X   [   0,  -1 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-7 SCDifferenceCycleCompress[0m
  
  [2X> SCDifferenceCycleCompress( [0X[3Xsimplex, modulus[0X[2X ) ____________________[0Xfunction
  [6XReturns:[0X  list with possibly duplicate entries upon success, [9Xfail[0m otherwise.
  
  A  difference  cycle  is  returned, i. e. a list of integer values of length
  (d+1), if d is the dimension of [3Xsimplex[0m, and a sum equal to [3Xmodulus[0m. In some
  sense this is the inverse operation of [2XSCDifferenceCycleExpand[0m ([14X6.4-8[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> sphere:=SCBdSimplex(4);;[0X
    [4X gap> gens:=SCGenerators(sphere);[0X
    [4X [ [ [ 1, 2, 3, 4 ], [ 5 ] ] ][0X
    [4X gap> diffcycle:=SCDifferenceCycleCompress(gens[1][1],5);[0X
    [4X [ 1, 1, 1, 2 ][0X
    [4X gap> c:=SCDifferenceCycleExpand([1,1,1,2]);;[0X
    [4X gap> c.Facets;[0X
    [4X [ [ 1, 2, 3, 4 ], [ 1, 2, 3, 5 ], [ 1, 2, 4, 5 ], [ 1, 3, 4, 5 ], [0X
    [4X   [ 2, 3, 4, 5 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-8 SCDifferenceCycleExpand[0m
  
  [2X> SCDifferenceCycleExpand( [0X[3Xdiffcycle[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  [3Xdiffcycle[0m  induces  a  simplex  Delta  =  (  v_1  ,  ...  ,  v_n+1  ) by v_1
  =[3Xdiffcycle[1][0m,  v_i  =  v_i-1  +  [3Xdiffcycle[i][0m  and a cyclic group action by
  Z_sigma  where  sigma  =  sum  [3Xdiffcycle[i][0m is the modulus of [10Xdiffcycle[0m. The
  function returns the Z_sigma-orbit of Delta.
  
  Note  that modulo operations in [5XGAP[0m are often a little bit cumbersome, since
  all integer ranges usually start from 1.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCDifferenceCycleExpand([1,1,2]);;[0X
    [4X gap> c.Facets;[0X
    [4X [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.4-9 SCStronglyConnectedComponents[0m
  
  [2X> SCStronglyConnectedComponents( [0X[3Xcomplex[0X[2X ) ___________________________[0Xmethod
  [6XReturns:[0X  a  list  of  simplicial complexes of type [10XSCSimplicialComplex[0m upon
            success, [9Xfail[0m otherwise.
  
  Computes  all  strongly  connected  components  of  an  arbitrary simplicial
  complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[3,4,5],[4,5,6,7,8,9],[6,7,8,9,10,11]]);;[0X
    [4X gap> comps:=SCStronglyConnectedComponents(c);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #1 of unnamed complex 74"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #2 of unnamed complex 74"[0X
    [4X      Dim=5[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #3 of unnamed complex 74"[0X
    [4X      Dim=5[0X
    [4X     [0X
    [4X     /SimplicialComplex] ][0X
    [4X gap> comps[1].Facets;[0X
    [4X [ [ 1, 2, 3 ] ][0X
    [4X gap> comps[2].Facets;[0X
    [4X [ [ 3, 4, 5 ], [ 4, 5, 6, 7, 8, 9 ] ][0X
    [4X gap> comps[3].Facets;[0X
    [4X [ [ 6, 7, 8, 9, 10, 11 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.5 Simplicial complexes from transitive permutation groups[0X
  
  Beginning  from  Version  1.3.0, [5Xsimpcomp[0m is able to generate triangulations
  from  a prescribed transitive group action on its set of vertices. Note that
  the  corresponding  group  is a subgroup of the full automorphism group, but
  not  necessarily  the full automorphism group of the triangulations obtained
  in  this  way. The methods and algorithms are based on the works of Frank H.
  Lutz [Lut03], [ManifoldPage] and in particular his program [10XMANIFOLD_VT[0m.
  
  [1X6.5-1 SCsFromGroupExt[0m
  
  [2X> SCsFromGroupExt( [0X[3XG, n, d, objectType, cache, removeDoubleEntries[0X[2X ) [0Xfunction
  [6XReturns:[0X  a  list  of  simplicial complexes of type [10XSCSimplicialComplex[0m upon
            success, [9Xfail[0m otherwise.
  
  Computes  all  combinatorial  [3Xd[0m-pseudomanifolds  as a union of orbits of the
  group action of [3XG[0m on [10X(d+1)[0m-tuples on the set of [3Xn[0m vertices, see [Lut03]. The
  integer  argument  [3XobjectType[0m  specifies,  whether  complexes  exceeding the
  maximal  size of each vertex link for combinatorial manifolds are sorted out
  ([10XobjectType  =  0[0m)  or  not ([10XobjectType = 1[0m, in this case some combinatorial
  pseudomanifolds won't be found, but no combinatorial manifold will be sorted
  out).  The integer argument [3Xcache[0m specifies if the orbits are held in memory
  during  the  computation,  a value of [10X0[0m means that the orbits are discarded,
  trading  speed for memory, any other value means that they are kept, trading
  memory for speed. The boolean argument [3XremoveDoubleEntries[0m specifies whether
  the results are checked for combinatorial isomorphism, preventing isomorphic
  entries.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> G:=PrimitiveGroup(8,5);[0X
    [4X PGL(2, 7)[0X
    [4X gap> Size(G);[0X
    [4X 336[0X
    [4X gap> Transitivity(G);[0X
    [4X 3[0X
    [4X gap> list:=SCsFromGroupExt(G,8,3,1,0,true);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X     [0X
    [4X      Name="Complex 1 of PGL(2, 7) (single orbit)"[0X
    [4X      Dim=3[0X
    [4X     [0X
    [4X     /SimplicialComplex] ][0X
    [4X gap> SCNeighborliness(list[1]); [0X
    [4X 3[0X
    [4X gap> list[1].F;[0X
    [4X [ 8, 28, 56, 28 ][0X
    [4X gap> list[1].IsManifold; [0X
    [4X false[0X
    [4X gap> SCLibDetermineTopologicalType(SCLink(list[1],1));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, [0X
    [4X                    IsPseudoManifold, Name, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="lk([ 1 ]) in Complex 1 of PGL(2, 7) (single orbit)"[0X
    [4X  Dim=2[0X
    [4X  HasBoundary=false[0X
    [4X  IsPseudoManifold=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> # there are no 3-neighborly 3-manifolds with 8 vertices[0X
    [4X gap> list:=SCsFromGroupExt(PrimitiveGroup(8,5),8,3,0,0,true); [0X
    [4X gap> [  ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.5-2 SCsFromGroupByTransitivity[0m
  
  [2X> SCsFromGroupByTransitivity( [0X[3Xn, d, k, maniflag, computeAutGroup, removeDoubleEntries[0X[2X ) [0Xfunction
  [6XReturns:[0X  a  list  of  simplicial complexes of type [10XSCSimplicialComplex[0m upon
            success, [9Xfail[0m otherwise.
  
  Computes  all  combinatorial  [3Xd[0m-pseudomanifolds  as union of orbits of group
  actions  for  all  [3Xk[0m-transitive  groups  on  [10X(d+1)[0m-tuples  on  the  set of [3Xn[0m
  vertices,  see [Lut03]. The boolean argument [3Xmaniflag[0m specifies, whether the
  resulting  complexes should be listed separately by combinatorial manifolds,
  combinatorial  pseudomanifolds and complexes where the verification that the
  object  is  at  least  a  combinatorial  pseudomanifold  failed. The boolean
  argument  [3XcomputeAutGroup[0m  specifies  whether  or  not the real automorphism
  group  should be computed (note that a priori the generating group is just a
  subgroup    of    the    automorphism    group).    The   boolean   argument
  [3XremoveDoubleEntries[0m   specifies   whether   the   results  are  checked  for
  combinatorial  isomorphism,  preventing isomorphic entries. Internally calls
  [2XSCsFromGroupExt[0m ([14X6.5-1[0m) for every group.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCsFromGroupByTransitivity(8,3,2,true,true,true);[0X
    [4X #I  SCsFromGroupByTransitivity: Building list of groups...[0X
    [4X #I  SCsFromGroupByTransitivity: ...2 groups found.[0X
    [4X #I  degree 8: [ AGL(1, 8), PSL(2, 7) ][0X
    [4X #I  SCsFromGroupByTransitivity: Processing dimension 3.[0X
    [4X #I  SCsFromGroupByTransitivity: Processing degree 8.[0X
    [4X #I  SCsFromGroupByTransitivity: 1 / 2 groups calculated, found 0 complexes.[0X
    [4X #I  SCsFromGroupByTransitivity: Calculating [0X
    [4X 0 automorphism and homology groups...[0X
    [4X #I  SCsFromGroupByTransitivity: ...all automorphism groups calculated for grou\[0X
    [4X p 1 / 2.[0X
    [4X #I  SCsFromGroupByTransitivity: 2 / 2 groups calculated, found 1 complexes.[0X
    [4X #I  SCsFromGroupByTransitivity: Calculating [0X
    [4X 1 automorphism and homology groups...[0X
    [4X #I  group not listed[0X
    [4X #I  SCsFromGroupByTransitivity: 1 / 1 automorphism groups calculated.[0X
    [4X #I  SCsFromGroupByTransitivity: ...all automorphism groups calculated for grou\[0X
    [4X p 2 / 2.[0X
    [4X #I  SCsFromGroupByTransitivity: Checking for double entries...[0X
    [4X #I  SCsFromGroupByTransitivity: ...done dim = 3, deg =  8, 0 manifolds, [0X
    [4X 1 pseudomanifolds, 0 candidates found.[0X
    [4X #I  SCsFromGroupByTransitivity: ...done dim = 3.[0X
    [4X [ [  ], [ [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AutomorphismGroup, AutomorphismGroupSize, [0X
    [4X                            AutomorphismGroupStructure, [0X
    [4X                            AutomorphismGroupTransitivity, BoundaryEx, Dim, [0X
    [4X                            DualGraph, FVector, FacetsEx, GeneratorsEx, [0X
    [4X                            HasBoundary, Homology, IsConnected, IsEmpty, [0X
    [4X                            IsManifold, IsPseudoManifold, Name, NumFaces[], [0X
    [4X                            SkelExs[], Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 1 of PSL(2, 7) (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=336[0X
    [4X          AutomorphismGroupStructure="PSL(3,2) : C2"[0X
    [4X          AutomorphismGroupTransitivity=3[0X
    [4X          FVector=[ 8, 28, 56, 28 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 8, [ ] ], [ 1, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPseudoManifold=true[0X
    [4X         [0X
    [4X         /SimplicialComplex] ], [  ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.6 Computing properties of simplicial complexes[0X
  
  The  following functions compute basic properties of simplicial complexes of
  type  [10XSCSimplicialComplex[0m.  None  of  these functions alter the complex. All
  properties  are returned as immutable objects (this ensures data consistency
  of  the  cached  properties of a simplicial complex). Use [10XShallowCopy[0m or the
  internal [5Xsimpcomp[0m function [10XSCIntFunc.DeepCopy[0m to get a mutable copy.
  
  Note: every simplicial complex is internally stored with the standard vertex
  labeling from 1 to n and a maptable to restore the original vertex labeling.
  Thus,  we  have  to  relabel  some  of  the complex properties (facets, face
  lattice, generators, etc...) whenever we want to return them to the user. As
  a  consequence,  some  of  the  functions  exist twice, one of them with the
  appendix  "Ex".  These  functions  return  the standard labeling whereas the
  other ones relabel the result to the original labeling.
  
  [1X6.6-1 SCAltshulerSteinberg[0m
  
  [2X> SCAltshulerSteinberg( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xmethod
  [6XReturns:[0X  a non-negative integer upon success, [9Xfail[0m otherwise.
  
  Computes the Altshuler-Steinberg determinant.
  
  Definition: Let v_i, 1 <= i <= n be the vertices and let F_j, 1 <= j <= m be
  the facets of a pure simplicial complex C, then the determinant of AS in Z^n
  x   m,   AS_ij=1   if   v_i   in  F_j,  AS_ij=0  otherwise,  is  called  the
  Altshuler-Steinberg  matrix.  The  Altshuler-Steinberg  determinant  is  the
  determinant of the quadratic matrix AS * AS^T.
  
  The  Altshuler-Steinberg  determinant  is a combinatorial invariant of C and
  can  be  checked  before searching for an isomorphism between two simplicial
  complexes.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCLib.SearchByName("T^2");; [0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCAltshulerSteinberg(torus);[0X
    [4X 73728[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCAltshulerSteinberg(c);[0X
    [4X 9[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X gap> SCAltshulerSteinberg(c);[0X
    [4X 16[0X
    [4X gap> c:=SCBdSimplex(5);;[0X
    [4X gap> SCAltshulerSteinberg(c);[0X
    [4X 25[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-2 SCAutomorphismGroup[0m
  
  [2X> SCAutomorphismGroup( [0X[3Xcomplex[0X[2X ) _____________________________________[0Xmethod
  [6XReturns:[0X  a [5XGAP[0m permutation group upon success, [9Xfail[0m otherwise.
  
  Computes  the  automorphism  group  of  a  strongly connected pseudomanifold
  [3Xcomplex[0m,  i.  e.  the  group  of all automorphisms on the set of vertices of
  [3Xcomplex[0m  that do not change the complex as a whole. Necessarily the group is
  a  subgroup  of the symmetric group S_n where n is the number of vertices of
  the simplicial complex.
  
  The  function uses an efficient algorithm provided by the package [5XGRAPE[0m (see
  [Soi06],  which  is based on the program [10Xnauty[0m by Brendan McKay [McK84]). If
  the  package  [5XGRAPE[0m  is  not  available,  this  function  call falls back to
  [2XSCAutomorphismGroupInternal[0m ([14X6.6-3[0m).
  
  The  position  of the group in the [5XGAP[0m libraries of small groups, transitive
  groups  or  primitive  groups  is  given.  If  the  group is not listed, its
  structure  description, provided by the [5XGAP[0m function [10XStructureDescription()[0m,
  is  returned  as  the  name  of  the group. Note that the latter form is not
  always  unique,  since  every  non trivial semi-direct product is denoted by
  ''[10X:[0m''.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");            [0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> k3surf:=SCLib.Load(last[1][1]);; [0X
    [4X gap> SCAutomorphismGroup(k3surf);               [0X
    [4X Group([ (1,3,8,4,9,16,15,2,14,12,6,7,13,5,10), [0X
    [4X   (1,13)(2,14)(3,15)(4,16)(5,9)(6,10)(7,11)(8,12) ])[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-3 SCAutomorphismGroupInternal[0m
  
  [2X> SCAutomorphismGroupInternal( [0X[3Xcomplex[0X[2X ) _____________________________[0Xmethod
  [6XReturns:[0X  a [5XGAP[0m permutation group upon success, [9Xfail[0m otherwise.
  
  Computes  the  automorphism  group  of  a  strongly connected pseudomanifold
  [3Xcomplex[0m,  i.  e.  the  group  of all automorphisms on the set of vertices of
  [3Xcomplex[0m  that do not change the complex as a whole. Necessarily the group is
  a  subgroup  of the symmetric group S_n where n is the number of vertices of
  the simplicial complex.
  
  The  position  of the group in the [5XGAP[0m libraries of small groups, transitive
  groups  or  primitive  groups  is  given.  If  the  group is not listed, its
  structure  description, provided by the [5XGAP[0m function [10XStructureDescription()[0m,
  is  returned  as  the  name  of  the group. Note that the latter form is not
  always  unique,  since  every  non trivial semi-direct product is denoted by
  ''[10X:[0m''.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(5);;[0X
    [4X gap> SCAutomorphismGroupInternal(c);[0X
    [4X Sym( [ 1 .. 6 ] )[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[2,3],[1,3]]);;[0X
    [4X gap> g:=SCAutomorphismGroupInternal(c);[0X
    [4X PrimitiveGroup(3,2) = S(3)[0X
    [4X gap> List(g);[0X
    [4X [ (), (1,3,2), (1,2,3), (2,3), (1,3), (1,2) ][0X
    [4X gap> StructureDescription(g);[0X
    [4X "S3"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-4 SCAutomorphismGroupSize[0m
  
  [2X> SCAutomorphismGroupSize( [0X[3Xcomplex[0X[2X ) _________________________________[0Xmethod
  [6XReturns:[0X  a positive integer group upon success, [9Xfail[0m otherwise.
  
  Computes  the  size  of  the  automorphism  group  of  a  strongly connected
  pseudomanifold [3Xcomplex[0m, see [2XSCAutomorphismGroup[0m ([14X6.6-2[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");            [0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> k3surf:=SCLib.Load(last[1][1]);;           [0X
    [4X gap> SCAutomorphismGroupSize(k3surf);               [0X
    [4X 240[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-5 SCAutomorphismGroupStructure[0m
  
  [2X> SCAutomorphismGroupStructure( [0X[3Xcomplex[0X[2X ) ____________________________[0Xmethod
  [6XReturns:[0X  the [5XGAP[0m structure description upon success, [9Xfail[0m otherwise.
  
  Computes  the  [5XGAP[0m  structure  description  of  the  automorphism group of a
  strongly connected pseudomanifold [3Xcomplex[0m, see [2XSCAutomorphismGroup[0m ([14X6.6-2[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");     [0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> k3surf:=SCLib.Load(last[1][1]);;      [0X
    [4X gap> SCAutomorphismGroupStructure(k3surf);[0X
    [4X "((C2 x C2 x C2 x C2) : C5) : C3"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-6 SCAutomorphismGroupTransitivity[0m
  
  [2X> SCAutomorphismGroupTransitivity( [0X[3Xcomplex[0X[2X ) _________________________[0Xmethod
  [6XReturns:[0X  a positive integer upon success, [9Xfail[0m otherwise.
  
  Computes  the transitivity of the automorphism group of a strongly connected
  pseudomanifold  [3Xcomplex[0m,  i.  e. the maximal integer t such that for any two
  ordered t-tuples T_1 and T_2 of vertices of [3Xcomplex[0m, there exists an element
  g in the automorphism group of [3Xcomplex[0m for which gT_1=T_2, see [Hup67].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");            [0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> k3surf:=SCLib.Load(last[1][1]);;           [0X
    [4X gap> SCAutomorphismGroupTransitivity(k3surf);               [0X
    [4X 2[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-7 SCBoundary[0m
  
  [2X> SCBoundary( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  The   function  computes  the  boundary  of  a  simplicial  complex  [3Xcomplex[0m
  satisfying  the  weak pseudomanifold property and returns it as a simplicial
  complex. In addition, it is stored as a property of [3Xcomplex[0m.
  
  The  boundary  of  a simplicial complex is defined as the simplicial complex
  consisting of all d-1-faces that are contained in exactly one facet.
  
  If  [3Xcomplex[0m  does not fulfill the weak pseudomanifold property (i. e. if the
  valence of any d-1-face exceeds 2) the function returns [9Xfail[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 50"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCBoundary(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="Bd(unnamed complex 50)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c;  [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, Name, [0X
    [4X                    SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 50"[0X
    [4X  Dim=3[0X
    [4X  HasBoundary=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-8 SCDehnSommervilleCheck[0m
  
  [2X> SCDehnSommervilleCheck( [0X[3Xc[0X[2X ) ________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if the simplicial complex [3Xc[0m fulfills the Dehn Sommerville equations:
  h_j  -  h_d+1-j = (-1)^d+1-j d+1 choose j (chi (M) - 2) for 0 <= j <= fracd2
  and  d  even,  and h_j - h_d+1-j = 0 for 0 <= j <= fracd-12 and d odd. Where
  h_j is the jth component of the h-vector, see [2XSCHVector[0m ([14X6.6-25[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(6);;[0X
    [4X gap> SCDehnSommervilleCheck(c);[0X
    [4X true[0X
    [4X gap> c:=SC([[1,2,3],[1,4,5]]);;[0X
    [4X gap> SCDehnSommervilleCheck(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-9 SCDehnSommervilleMatrix[0m
  
  [2X> SCDehnSommervilleMatrix( [0X[3Xd[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  a  [10X(d+1)[0mx[10XInt(d+1/2)[0m matrix with integer entries upon success, [9Xfail[0m
            otherwise.
  
  Computes the coefficients of the Dehn Sommerville equations for dimension [10Xd[0m:
  h_j  -  h_d+1-j = (-1)^d+1-j d+1 choose j (chi (M) - 2) for 0 <= j <= fracd2
  and  d  even,  and h_j - h_d+1-j = 0 for 0 <= j <= fracd-12 and d odd. Where
  h_j is the jth component of the h-vector, see [2XSCHVector[0m ([14X6.6-25[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> m:=SCDehnSommervilleMatrix(6);;[0X
    [4X gap> PrintArray(m);[0X
    [4X [ [    1,   -1,    1,   -1,    1,   -1,    1 ],[0X
    [4X   [    0,   -2,    3,   -4,    5,   -6,    7 ],[0X
    [4X   [    0,    0,    0,   -4,   10,  -20,   35 ],[0X
    [4X   [    0,    0,    0,    0,    0,   -6,   21 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-10 SCDim[0m
  
  [2X> SCDim( [0X[3Xcomplex[0X[2X ) ___________________________________________________[0Xmethod
  [6XReturns:[0X  an integer >= -1 upon success, [9Xfail[0m otherwise.
  
  Computes  the dimension of a simplicial complex. If the complex is not pure,
  the dimension of the highest dimensional simplex is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> complex:=SC([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0X
    [4X gap> SCDim(complex);                                    [0X
    [4X 2[0X
    [4X gap> c:=SC([[1], [2,4], [3,4], [5,6,7,8]]);;[0X
    [4X gap> SCDim(c);[0X
    [4X 3[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-11 SCDualGraph[0m
  
  [2X> SCDualGraph( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  1-dimensional  simplicial complex of type [10XSCSimplicialComplex[0m upon
            success, [9Xfail[0m otherwise.
  
  Computes the dual graph of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> sphere:=SCBdSimplex(5);;[0X
    [4X gap> graph:=SCFaces(sphere,1);       [0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0X
    [4X   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0X
    [4X   [ 5, 6 ] ][0X
    [4X gap> graph:=SC(graph);;              [0X
    [4X gap> dualGraph:=SCDualGraph(sphere); [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="dual graph of S^4_6"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> graph.Facets = dualGraph.Facets;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-12 SCEulerCharacteristic[0m
  
  [2X> SCEulerCharacteristic( [0X[3Xcomplex[0X[2X ) ___________________________________[0Xmethod
  [6XReturns:[0X  integer upon success, [9Xfail[0m otherwise.
  
  Computes  the Euler characteristic $ \chi(C)=\sum \limits_{i=0}^{d} (-1)^{i}
  f_i $ of a simplicial complex C, where f_i denotes the i-th component of the
  f-vector.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> complex:=SCFromFacets([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0X
    [4X gap> SCEulerCharacteristic(complex);[0X
    [4X 2[0X
    [4X gap> s2:=SCBdSimplex(3);;[0X
    [4X gap> s2.EulerCharacteristic;[0X
    [4X 2[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-13 SCFVector[0m
  
  [2X> SCFVector( [0X[3Xcomplex[0X[2X ) _______________________________________________[0Xmethod
  [6XReturns:[0X  a list of non-negative integers upon success, [9Xfail[0m otherwise.
  
  Computes the f-vector of the simplicial complex [3Xcomplex[0m, i. e. the number of
  i-dimensional  faces for 0 <= i <= d, where d is the dimension of [3Xcomplex[0m. A
  memory-saving  implicit  algorithm  is used that avoids calculating the face
  lattice of the complex. Internally calls [2XSCNumFaces[0m ([14X6.6-48[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> complex:=SC([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0X
    [4X gap> SCFVector(complex);[0X
    [4X [ 4, 6, 4 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-14 SCFaceLattice[0m
  
  [2X> SCFaceLattice( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes  the  entire face lattice of a d-dimensional simplicial complex, i.
  e.  all  of  its  i-skeletons for 0 <= i <= d. The faces are returned in the
  original labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0X
    [4X gap> SCFaceLattice(c);[0X
    [4X [ [ [ "a" ], [ "b" ], [ "c" ], [ "d" ] ], [0X
    [4X   [ [ "a", "b" ], [ "a", "c" ], [ "a", "d" ], [ "b", "c" ], [ "b", "d" ], [0X
    [4X       [ "c", "d" ] ], [0X
    [4X   [ [ "a", "b", "c" ], [ "a", "b", "d" ], [ "a", "c", "d" ], [0X
    [4X       [ "b", "c", "d" ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-15 SCFaceLatticeEx[0m
  
  [2X> SCFaceLatticeEx( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes  the  entire face lattice of a d-dimensional simplicial complex, i.
  e.  all  of  its  i-skeletons for 0 <= i <= d. The faces are returned in the
  standard labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0X
    [4X gap> SCFaceLatticeEx(c);[0X
    [4X [ [ [ 1 ], [ 2 ], [ 3 ], [ 4 ] ], [0X
    [4X   [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ], [0X
    [4X   [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-16 SCFaces[0m
  
  [2X> SCFaces( [0X[3Xcomplex, k[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  This is a synonym of the function [2XSCSkel[0m ([14X7.3-13[0m).
  
  [1X6.6-17 SCFacesEx[0m
  
  [2X> SCFacesEx( [0X[3Xcomplex, k[0X[2X ) ____________________________________________[0Xmethod
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  This is a synonym of the function [2XSCSkelEx[0m ([14X7.3-14[0m).
  
  [1X6.6-18 SCFacets[0m
  
  [2X> SCFacets( [0X[3Xcomplex[0X[2X ) ________________________________________________[0Xmethod
  [6XReturns:[0X  a facet list upon success, [9Xfail[0m otherwise.
  
  Returns the facets of a simplicial complex in the original vertex labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[2,3],[3,4],[4,2]]);;[0X
    [4X gap> SCFacets(c);[0X
    [4X [ [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-19 SCFacetsEx[0m
  
  [2X> SCFacetsEx( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  a facet list upon success, [9Xfail[0m otherwise.
  
  Returns  the  facets  of a simplicial complex as they are stored, i. e. with
  standard vertex labeling from 1 to n.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[2,3],[3,4],[4,2]]);;[0X
    [4X gap> SCFacetsEx(c);[0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 2, 3 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-20 SCFpBettiNumbers[0m
  
  [2X> SCFpBettiNumbers( [0X[3Xcomplex, p[0X[2X ) _____________________________________[0Xmethod
  [6XReturns:[0X  a list of non-negative integers upon success, [9Xfail[0m otherwise.
  
  Computes the Betti numbers of a simplicial complex with respect to the field
  F_p for any prime number [10Xp[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2");    [0X
    [4X [ [ 17, "K^2 (VT)" ], [ 571, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(last[1][1]);; [0X
    [4X gap> SCHomology(kleinBottle);      [0X
    [4X [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X gap> SCFpBettiNumbers(kleinBottle,2);[0X
    [4X [ 1, 2, 1 ][0X
    [4X gap> SCFpBettiNumbers(kleinBottle,3);[0X
    [4X [ 1, 1, 0 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-21 SCFundamentalGroup[0m
  
  [2X> SCFundamentalGroup( [0X[3Xcomplex[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  a [5XGAP[0m fp group upon success, [9Xfail[0m otherwise.
  
  Computes  the  first fundamental group of [3Xcomplex[0m, which must be a connected
  simplicial  complex,  and  returns it in form of a finitely presented group.
  The  generators  of  the  group are given as 2-tuples that correspond to the
  edges  of  [3Xcomplex[0m in standard labeling. You can use GAP's [10XSimplifiedFpGroup[0m
  to simplify the group presenation.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCLib.SearchByName("RP^2");[0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> c:=SCLib.Load(list[1][1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, ConnectedComponents, [0X
    [4X                    Dim, DualGraph, EulerCharacteristic, FVector, [0X
    [4X                    FacetsEx, GVector, GeneratorsEx, HVector, [0X
    [4X                    HasBoundary, HasInterior, Homology, Interior, [0X
    [4X                    IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, [0X
    [4X                    IsPseudoManifold, IsPure, IsStronglyConnected, [0X
    [4X                    MinimalNonFacesEx, Name, Neighborliness, [0X
    [4X                    NumFaces[], Orientation, Reference, SkelExs[], [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="RP^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X  AltshulerSteinberg=3645[0X
    [4X  AutomorphismGroupSize=60[0X
    [4X  AutomorphismGroupStructure="A5"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  EulerCharacteristic=1[0X
    [4X  FVector=[ 6, 15, 10 ][0X
    [4X  GVector=[ 2, 3 ][0X
    [4X  HVector=[ 3, 6, 0 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ 2 ] ], [ 0, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=false[0X
    [4X  IsPseudoManifold=true[0X
    [4X  IsPure=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  Neighborliness=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> g:=SCFundamentalGroup(c);;[0X
    [4X gap> StructureDescription(g);[0X
    [4X "C2"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-22 SCGVector[0m
  
  [2X> SCGVector( [0X[3Xcomplex[0X[2X ) _______________________________________________[0Xmethod
  [6XReturns:[0X  a list of integers upon success, [9Xfail[0m otherwise.
  
  Computes  the  g-vector  of a simplicial complex. The g-vector is defined as
  follows:
  
  Let  h  be  the  h-vector  of  a  d-dimensional  simplicial  complex C, then
  $g_i:=h_{i+1}  -  h_{i}  ;  \quad  \frac{d}{2} \geq i \geq 0 $ is called the
  g-vector  of  C.  For the definition of the h-vector see [2XSCHVector[0m ([14X6.6-25[0m).
  The information contained in g suffices to determine the f-vector of C.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");[0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCFVector(rp2_6);[0X
    [4X [ 6, 15, 10 ][0X
    [4X gap> SCHVector(rp2_6);[0X
    [4X [ 3, 6, 0 ][0X
    [4X gap> SCGVector(rp2_6);[0X
    [4X [ 2, 3 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-23 SCGenerators[0m
  
  [2X> SCGenerators( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xmethod
  [6XReturns:[0X  a  list  of pairs of the form [10X[ list, integer ][0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  the  generators  of  a  simplicial  complex in the original vertex
  labeling.
  
  The  generating set of a simplicial complex is a list of simplices that will
  generate  the  complex  by  uniting  their G-orbits if G is the automorphism
  group of [3Xcomplex[0m.
  
  The function returns the simplices together with the length of their orbits.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCLib.SearchByName("T^2");;[0X
    [4X gap> torus:=SCLib.Load(list[1][1]);;[0X
    [4X gap> SCGenerators(torus); [0X
    [4X [ [ [ 1, 2, 4 ], 14 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");[0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> SCLib.Load(last[1][1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, ConnectedComponents, [0X
    [4X                    Dim, DualGraph, EulerCharacteristic, FVector, [0X
    [4X                    FacetsEx, GVector, GeneratorsEx, HVector, [0X
    [4X                    HasBoundary, HasInterior, Homology, Interior, [0X
    [4X                    IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, [0X
    [4X                    IsPseudoManifold, IsPure, IsStronglyConnected, [0X
    [4X                    MinimalNonFacesEx, Name, Neighborliness, [0X
    [4X                    NumFaces[], Orientation, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="K3 surface"[0X
    [4X  Dim=4[0X
    [4X  AltshulerSteinberg=883835714748069945165599539200[0X
    [4X  AutomorphismGroupSize=240[0X
    [4X  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  EulerCharacteristic=24[0X
    [4X  FVector=[ 16, 120, 560, 720, 288 ][0X
    [4X  GVector=[ 10, 55, 220 ][0X
    [4X  HVector=[ 11, 66, 286, -99, 23 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 22, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=true[0X
    [4X  IsPseudoManifold=true[0X
    [4X  IsPure=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  Neighborliness=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCGenerators(last);[0X
    [4X [ [ [ 1, 2, 3, 8, 12 ], 240 ], [ [ 1, 2, 5, 8, 14 ], 48 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-24 SCGeneratorsEx[0m
  
  [2X> SCGeneratorsEx( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xmethod
  [6XReturns:[0X  a  list  of pairs of the form [10X[ list, integer ][0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  the  generators  of  a  simplicial  complex in the standard vertex
  labeling.
  
  The  generating set of a simplicial complex is a list of simplices that will
  generate  the  complex  by  uniting  their G-orbits if G is the automorphism
  group of [3Xcomplex[0m.
  
  The function returns the simplices together with the length of their orbits.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCLib.SearchByName("T^2");;[0X
    [4X gap> torus:=SCLib.Load(list[1][1]);;[0X
    [4X gap> SCGeneratorsEx(torus); [0X
    [4X [ [ [ 1, 2, 4 ], 14 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");[0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> SCLib.Load(last[1][1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, ConnectedComponents, [0X
    [4X                    Dim, DualGraph, EulerCharacteristic, FVector, [0X
    [4X                    FacetsEx, GVector, GeneratorsEx, HVector, [0X
    [4X                    HasBoundary, HasInterior, Homology, Interior, [0X
    [4X                    IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, [0X
    [4X                    IsPseudoManifold, IsPure, IsStronglyConnected, [0X
    [4X                    MinimalNonFacesEx, Name, Neighborliness, [0X
    [4X                    NumFaces[], Orientation, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="K3 surface"[0X
    [4X  Dim=4[0X
    [4X  AltshulerSteinberg=883835714748069945165599539200[0X
    [4X  AutomorphismGroupSize=240[0X
    [4X  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  EulerCharacteristic=24[0X
    [4X  FVector=[ 16, 120, 560, 720, 288 ][0X
    [4X  GVector=[ 10, 55, 220 ][0X
    [4X  HVector=[ 11, 66, 286, -99, 23 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 22, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=true[0X
    [4X  IsPseudoManifold=true[0X
    [4X  IsPure=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  Neighborliness=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCGeneratorsEx(last);[0X
    [4X [ [ [ 1, 2, 3, 8, 12 ], 240 ], [ [ 1, 2, 5, 8, 14 ], 48 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-25 SCHVector[0m
  
  [2X> SCHVector( [0X[3Xcomplex[0X[2X ) _______________________________________________[0Xmethod
  [6XReturns:[0X  a list of integers upon success, [9Xfail[0m otherwise.
  
  Computes  the h-vector of a simplicial complex. The h-vector is defined as $
  h_{k}:= \sum \limits_{i=-1}^{k-1} (-1)^{k-i-1}{d-i-1 \choose k-i-1} f_i$ for
  0  <= k <= d, where f_-1 := 1. For all simplicial complexes we have h_0 = 1,
  hence the returned list starts with the second entry of the h-vector.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");[0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCFVector(rp2_6);[0X
    [4X [ 6, 15, 10 ][0X
    [4X gap> SCHVector(rp2_6);[0X
    [4X [ 3, 6, 0 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-26 SCHasBoundary[0m
  
  [2X> SCHasBoundary( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  a  simplicial  complex  [3Xcomplex[0m  that  fulfills  the weak pseudo
  manifold  property  has a boundary, i. e. d-1-faces of valence 1. If [3Xcomplex[0m
  is  closed  [9Xfalse[0m  is  returned,  if  [3Xcomplex[0m  does  not  fulfill  the  weak
  pseudomanifold property, [9Xfail[0m is returned, otherwise [9Xtrue[0m is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2"); [0X
    [4X [ [ 17, "K^2 (VT)" ], [ 571, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCHasBoundary(kleinBottle);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0X
    [4X gap> SCHasBoundary(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-27 SCHasInterior[0m
  
  [2X> SCHasInterior( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Returns  [9Xtrue[0m  if  a  simplicial  complex  [3Xcomplex[0m  that  fulfills  the weak
  pseudomanifold  property  has  at  least one d-1-face of valence 2, i. e. if
  there exist at least one d-1-face that is not in the boundary of [3Xcomplex[0m, if
  no such face can be found [9Xfalse[0m is returned. It [3Xcomplex[0m does not fulfill the
  weak pseudomanifold property [9Xfail[0m is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0X
    [4X gap> SCHasInterior(c)[0X
    [4X true[0X
    [4X gap> c:=SC([[1,2,3,4]]);;[0X
    [4X gap> SCHasInterior(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-28 SCHomology[0m
  
  [2X> SCHomology( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  a list of pairs of the form [10X[ integer, list ][0m.
  
  Computes  the  integral  simplicial  homology groups of a simplicial complex
  [3Xcomplex[0m  (internally calls the function [10XSimplicialHomology(complex.FacetsEx)[0m
  from the [5Xhomology[0m package, version 1.4.2., see [DHSW04]).
  
  If  the  [5Xhomology[0m package is not available, this function call falls back to
  [2XSCHomologyInternal[0m  ([14X8.1-5[0m).  The output is a list of homology groups of the
  form  [H_0,....,H_d], where d is the dimension of [3Xcomplex[0m. The format of the
  homology  groups  H_i  is  given in terms of their maximal cyclic subgroups,
  i.e. a homology group H_icong Z^f + Z / t_1 Z x dots x Z / t_n Z is returned
  in  form  of a list [ f, [t_1,...,t_n] ], where f is the (integer) free part
  of H_i and t_i denotes the torsion parts of H_i ordered in weakly increasing
  size.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2");[0X
    [4X [ [ 17, "K^2 (VT)" ], [ 571, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(last[1][1]);;[0X
    [4X gap> kleinBottle.Homology;          [0X
    [4X [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X gap> SCLib.SearchByName("L_"){[1..10]};[0X
    [4X [ [ 139, "L_3_1" ], [ 634, "L_4_1" ], [ 754, "L_5_2" ], [0X
    [4X   [ 2416, "(S^2~S^1)#L_3_1" ], [ 2417, "(S^2xS^1)#L_3_1" ], [ 2490, "L_5_1" ],[0X
    [4X   [ 2492, "(S^2~S^1)#2#L_3_1" ], [ 2494, "(S^2xS^1)#2#L_3_1" ], [0X
    [4X   [ 7467, "L_7_2" ], [ 7468, "L_8_3" ] ][0X
    [4X gap> c:=SCConnectedSum(SCConnectedProduct(SCLib.Load(last[9][1]),3),[0X
    [4X                        SCConnectedProduct(SCLib.Load(last[10][1]),2));[0X
    [4X > [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="L_7_2#+-L_7_2#+-L_7_2#+-L_8_3#+-L_8_3"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCHomology(c);[0X
    [4X [ [ 0, [  ] ], [ 0, [ 7, 56, 56 ] ], [ 0, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> SCFpBettiNumbers(c,2);[0X
    [4X [ 1, 2, 2, 1 ][0X
    [4X gap> SCFpBettiNumbers(c,3);[0X
    [4X [ 1, 0, 0, 1 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-29 SCIncidences[0m
  
  [2X> SCIncidences( [0X[3Xcomplex, k[0X[2X ) _________________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Returns a list of all [3Xk[0m-faces of the simplicial complex [3Xcomplex[0m. The list is
  sorted by the valence of the faces in the [3Xk[0m+1-skeleton of the complex, i. e.
  the  i-th entry of the list contains all [3Xk[0m-faces of valence i. The faces are
  returned in the original labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[2,3,4],[3,4,5],[4,5,6],[1,5,6],[1,4,6],[2,3,6]]);;[0X
    [4X gap> SCIncidences(c,1);[0X
    [4X [ [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 2, 4 ], [ 2, 6 ], [ 3, 5 ], [0X
    [4X       [ 3, 6 ] ], [ [ 1, 6 ], [ 3, 4 ], [ 4, 5 ], [ 4, 6 ], [ 5, 6 ] ], [0X
    [4X   [ [ 2, 3 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-30 SCIncidencesEx[0m
  
  [2X> SCIncidencesEx( [0X[3Xcomplex, k[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Returns a list of all [3Xk[0m-faces of the simplicial complex [3Xcomplex[0m. The list is
  sorted by the valence of the faces in the [3Xk[0m+1-skeleton of the complex, i. e.
  the  i-th entry of the list contains all [3Xk[0m-faces of valence i. The faces are
  returned in the standard labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[2,3,4],[3,4,5],[4,5,6],[1,5,6],[1,4,6],[2,3,6]]);;[0X
    [4X gap> SCIncidences(c,1);[0X
    [4X [ [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 2, 4 ], [ 2, 6 ], [ 3, 5 ], [0X
    [4X       [ 3, 6 ] ], [ [ 1, 6 ], [ 3, 4 ], [ 4, 5 ], [ 4, 6 ], [ 5, 6 ] ], [0X
    [4X   [ [ 2, 3 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-31 SCInterior[0m
  
  [2X> SCInterior( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  all  d-1-faces  of  valence 2 of a simplicial complex [3Xcomplex[0m that
  fulfills  the  weak  pseudomanifold property, i. e. the function returns the
  part of the d-1-skeleton of C that is not part of the boundary.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0X
    [4X gap> SCInterior(c).Facets;[0X
    [4X [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 2, 5 ], [ 1, 3, 4 ], [ 1, 3, 5 ], [0X
    [4X   [ 1, 4, 5 ] ][0X
    [4X gap> c:=SC([[1,2,3,4]]);;[0X
    [4X gap> SCInterior(c).Facets;[0X
    [4X [  ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-32 SCIsCentrallySymmetric[0m
  
  [2X> SCIsCentrallySymmetric( [0X[3Xcomplex[0X[2X ) __________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if a simplicial complex [3Xcomplex[0m is centrally symmetric, i. e. if its
  automorphism group contains a fixed point free involution.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCIsCentrallySymmetric(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X gap> SCIsCentrallySymmetric(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-33 SCIsConnected[0m
  
  [2X> SCIsConnected( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks if a simplicial complex [3Xcomplex[0m is connected.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(1);;[0X
    [4X gap> SCIsConnected(c);[0X
    [4X false[0X
    [4X gap> c:=SCBdSimplex(2);;[0X
    [4X gap> SCIsConnected(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-34 SCIsEmpty[0m
  
  [2X> SCIsEmpty( [0X[3Xcomplex[0X[2X ) _______________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  a  simplicial  complex  [3Xcomplex[0m  is  the  empty complex, i. e. a
  [10XSCSimplicialComplex[0m object with empty facet list.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1]]);;[0X
    [4X gap> SCIsEmpty(c);[0X
    [4X false[0X
    [4X gap> c:=SC([]);;[0X
    [4X gap> SCIsEmpty(c);[0X
    [4X true[0X
    [4X gap> c:=SC([[]]);;[0X
    [4X gap> SCIsEmpty(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-35 SCIsEulerianManifold[0m
  
  [2X> SCIsEulerianManifold( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  whether a given simplicial complex [3Xcomplex[0m is a Eulerian manifold or
  not,   i.  e.  checks  if  all  vertex  links  of  [3Xcomplex[0m  have  the  Euler
  characteristic of a sphere. In particular the function returns [9Xfalse[0m in case
  [3Xcomplex[0m has a non-empty boundary.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X gap> SCIsEulerianManifold(c);[0X
    [4X true[0X
    [4X gap> SCLib.SearchByName("Moebius");[0X
    [4X [ [ 1, "Moebius Strip" ] ][0X
    [4X gap> moebius:=SCLib.Load(last[1][1]); # a moebius strip[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, EulerCharacteristic, FVector, FacetsEx, [0X
    [4X                    GVector, HVector, HasBoundary, Homology, [0X
    [4X                    IsConnected, IsManifold, IsPseudoManifold, [0X
    [4X                    MinimalNonFacesEx, Name, NumFaces[], SkelExs[], [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="Moebius Strip"[0X
    [4X  Dim=2[0X
    [4X  EulerCharacteristic=0[0X
    [4X  FVector=[ 5, 10, 5 ][0X
    [4X  GVector=[ 1, 1 ][0X
    [4X  HVector=[ 2, 3, -1 ][0X
    [4X  HasBoundary=true[0X
    [4X  Homology=[ [ 0 ], [ 1 ], [ 0 ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsPseudoManifold=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsEulerianManifold(moebius);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-36 SCIsFlag[0m
  
  [2X> SCIsFlag( [0X[3Xcomplex, k[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  [3Xcomplex[0m  is  flag. A simplicial complex is a flag complex if all
  edges of a potential face of the complex are in the complex, or equivalently
  if all of its minimal non-faces are edges (cf. [Fro08]).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");   [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCIsFlag(rp2_6);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-37 SCIsHomologySphere[0m
  
  [2X> SCIsHomologySphere( [0X[3Xcomplex[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  whether a simplicial complex [3Xcomplex[0m is a homology sphere, i. e. has
  the homology of a sphere, or not.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[2,3],[3,4],[4,2]]);;[0X
    [4X gap> SCIsHomologySphere(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-38 SCIsInKd[0m
  
  [2X> SCIsInKd( [0X[3Xcomplex, k[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  whether  the simplicial complex [3Xcomplex[0m that must be a combinatorial
  d-manifold  is  in the class mathcalK^k(d), 1<= k<= lfloorfracd+12rfloor, of
  simplicial  complexes  that only have k-stacked spheres as vertex links, see
  [Eff11b].  Note  that  it  is not checked whether [3Xcomplex[0m is a combinatorial
  manifold  --  if  not,  the algorithm will not succeed. Returns [9Xtrue[0m / [9Xfalse[0m
  upon  success.  If  [9Xtrue[0m  is  returned  this  means that [3Xcomplex[0m is at least
  [3Xk[0m-stacked  and thus that the complex is in the class mathcalK^k(d), i.e. all
  vertex  links  are [10Xi[0m-stacked spheres. If [9Xfalse[0m is returnd the complex cannot
  be  [3Xk[0m-stacked.  In  some cases the question can not be decided. In this case
  [9Xfail[0m is returned.
  
  Internally  calls [2XSCIsKStackedSphere[0m ([14X9.2-5[0m) for all links. Please note that
  this  is  a  radomized  algorithm  that may give an indefinite answer to the
  membership problem.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> list:=SCLib.SearchByName("S^2~S^1");;{[1..3]};[0X
    [4X gap> c:=SCLib.Load(list[1][1]);;[0X
    [4X gap> c.AutomorphismGroup;[0X
    [4X Group([ (1,3)(4,9)(5,8)(6,7), (1,9,8,7,6,5,4,3,2) ])[0X
    [4X gap> SCIsInKd(c,1);[0X
    [4X #I  SCIsKStackedSphere: checking if complex is a 1-stacked sphere...[0X
    [4X #I  SCIsKStackedSphere: try 1/50[0X
    [4X #I  SCIsKStackedSphere: complex is a 1-stacked sphere.[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-39 SCIsKNeighborly[0m
  
  [2X> SCIsKNeighborly( [0X[3Xcomplex, k[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");   [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCFVector(rp2_6);[0X
    [4X [ 6, 15, 10 ][0X
    [4X gap> SCIsKNeighborly(rp2_6,2);[0X
    [4X true[0X
    [4X gap> SCIsKNeighborly(rp2_6,3);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-40 SCIsOrientable[0m
  
  [2X> SCIsOrientable( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  a simplicial complex [3Xcomplex[0m, satisfying the weak pseudomanifold
  property, is orientable.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCIsOrientable(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-41 SCIsPseudoManifold[0m
  
  [2X> SCIsPseudoManifold( [0X[3Xcomplex[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  a  simplicial  complex  [3Xcomplex[0m fulfills the weak pseudomanifold
  property,  i.  e.  if  every  d-1-face  of [3Xcomplex[0m is contained in at most 2
  facets.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[1,2,4],[1,3,4],[2,3,4],[1,5,6],[1,5,7],[1,6,7],[5,6,7]]);;[0X
    [4X gap> SCIsPseudoManifold(c);[0X
    [4X true[0X
    [4X gap> c:=SC([[1,2],[2,3],[3,1],[1,4],[4,5],[5,1]]);;[0X
    [4X gap> SCIsPseudoManifold(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-42 SCIsPure[0m
  
  [2X> SCIsPure( [0X[3Xcomplex[0X[2X ) ________________________________________________[0Xmethod
  [6XReturns:[0X  a boolean upon success, [9Xfail[0m otherwise.
  
  Checks if a simplicial complex [3Xcomplex[0m is pure.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2], [1,4], [2,4], [2,3,4]]);;[0X
    [4X gap> SCIsPure(c);[0X
    [4X false[0X
    [4X gap> c:=SC([[1,2], [1,4], [2,4]]);;[0X
    [4X gap> SCIsPure(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-43 SCIsShellable[0m
  
  [2X> SCIsShellable( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  The  simplicial  complex  [3Xcomplex[0m  must be pure, strongly connected and must
  fulfill  the  weak  pseudomanifold  property  with  non-empty  boundary (cf.
  [2XSCBoundary[0m ([14X6.6-7[0m)).
  
  The  function  checks whether [3Xcomplex[0m is shellable or not. An ordering (F_1,
  F_2,  ...  ,  F_r)  on  the  facet  list of a simplicial complex is called a
  shelling if and only if F_i cap (F_1 cup ... cup F_i-1) is a pure simplicial
  complex  of  dimension  d-1  for all i = 1, ... , r. A simplicial complex is
  called shellable, if at least one shelling exists.
  
  See [Zie95], [Pac87] to learn more about shellings.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;       [0X
    [4X gap> c:=Difference(c,SC([[1,3,5,7]]));; # bounded version[0X
    [4X gap> SCIsShellable(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-44 SCIsStronglyConnected[0m
  
  [2X> SCIsStronglyConnected( [0X[3Xcomplex[0X[2X ) ___________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  if  a simplicial complex [3Xcomplex[0m is strongly connected, i. e. if for
  any pair of facets (hatDelta,tildeDelta) there exists a sequence of facets (
  Delta_1  ,  ... , Delta_k ) with Delta_1 = hatDelta and Delta_k = tildeDelta
  and dim(Delta_i , Delta_i+1 ) = d - 1 for all 1 <= i <= k - 1.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[1,2,4],[1,3,4],[2,3,4], [1,5,6],[1,5,7],[1,6,7],[5,6,7]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 24"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsConnected(c);        [0X
    [4X true[0X
    [4X gap> SCIsStronglyConnected(c);                                                [0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-45 SCMinimalNonFaces[0m
  
  [2X> SCMinimalNonFaces( [0X[3Xcomplex[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes all missing proper faces of a simplicial complex [3Xcomplex[0m by calling
  [2XSCMinimalNonFacesEx[0m  ([14X6.6-46[0m).  The  simplices  are returned in the original
  labeling of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(["abc","abd"]);;[0X
    [4X gap> SCMinimalNonFaces(c);           [0X
    [4X [ [  ], [ "cd" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-46 SCMinimalNonFacesEx[0m
  
  [2X> SCMinimalNonFacesEx( [0X[3Xcomplex[0X[2X ) _____________________________________[0Xmethod
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes  all missing proper faces of a simplicial complex [3Xcomplex[0m, i.e. the
  missing  (i+1)-tuples  in the i-dimensional skeleton of a [3Xcomplex[0m. A missing
  i+1-tuple  is  not listed if it only consists of missing i-tuples. Note that
  whenever  [3Xcomplex[0m  is  k-neighborly  the  first  k+1  entries are empty. The
  simplices  are  returned  in  the standard labeling 1,dots,n, where n is the
  number of vertices of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"){[1..10]}; [0X
    [4X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[0X
    [4X   [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ], [ 24, "(T^2)#3" ], [0X
    [4X   [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], [ 65, "T^2 (VT)" ] ][0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> SCFVector(torus);[0X
    [4X [ 7, 21, 14 ][0X
    [4X gap> SCMinimalNonFacesEx(torus);[0X
    [4X [ [  ], [  ] ][0X
    [4X gap> SCMinimalNonFacesEx(SCBdCrossPolytope(4));[0X
    [4X [ [  ], [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ], [ 7, 8 ] ], [  ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-47 SCNeighborliness[0m
  
  [2X> SCNeighborliness( [0X[3Xcomplex[0X[2X ) ________________________________________[0Xmethod
  [6XReturns:[0X  a positive integer upon success, [9Xfail[0m otherwise.
  
  Returns   k  if  a  simplicial  complex  [3Xcomplex[0m  is  k-neighborly  but  not
  (k+1)-neighborly. See also [2XSCIsKNeighborly[0m ([14X6.6-39[0m).
  
  Note that every complex is at least 1-neighborly.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X gap> SCNeighborliness(c);[0X
    [4X 4[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCNeighborliness(c);[0X
    [4X 1[0X
    [4X gap> SCLib.SearchByAttribute("F[3]=Binomial(F[1],3) and Dim=4");[0X
    [4X [ [ 16, "CP^2 (VT)" ], [ 7494, "K3 surface" ] ][0X
    [4X gap> cp2:=SCLib.Load(last[2][1]);;[0X
    [4X gap> SCNeighborliness(cp2);[0X
    [4X 3[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-48 SCNumFaces[0m
  
  [2X> SCNumFaces( [0X[3Xcomplex[, i][0X[2X ) _________________________________________[0Xmethod
  [6XReturns:[0X  an integer or a list of integers upon success, [9Xfail[0m otherwise.
  
  If  [3Xi[0m  is not specified the function computes the f-vector of the simplicial
  complex  [3Xcomplex[0m (cf. [2XSCFVector[0m ([14X6.6-13[0m)). If the optional integer parameter
  [3Xi[0m  is  passed,  only  the  [3Xi[0m-th  position  of  the  f-vector  of  [3Xcomplex[0m is
  calculated.  In  any  case  a  memory-saving implicit algorithm is used that
  avoids calculating the face lattice of the complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> complex:=SC([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0X
    [4X gap> SCNumFaces(complex,1);[0X
    [4X 6[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-49 SCOrientation[0m
  
  [2X> SCOrientation( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xmethod
  [6XReturns:[0X  a  list  of  the  type  {  pm  1  }^f_d  or [10X[ ][0m upon success, [9Xfail[0m
            otherwise.
  
  This  function  tries to compute an orientation of a pure simplicial complex
  [3Xcomplex[0m  that  fulfills  the  weak  pseudomanifold  property.  If [3Xcomplex[0m is
  orientable,  an orientation in form of a list of orientations for the facets
  of [3Xcomplex[0m is returned, otherwise an empty set.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCOrientation(c);[0X
    [4X [ 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-50 SCSkel[0m
  
  [2X> SCSkel( [0X[3Xcomplex, k[0X[2X ) _______________________________________________[0Xmethod
  [6XReturns:[0X  a face list or a list of face lists upon success, [9Xfail[0m otherwise.
  
  If  [3Xk[0m  is  an integer, the [3Xk[0m-skeleton of a simplicial complex [3Xcomplex[0m, i. e.
  all  [3Xk[0m-faces  of  [3Xcomplex[0m,  is  computed.  If  [3Xk[0m  is  a  list, a list of all
  [3Xk[0m[10X[i][0m-faces  of  [3Xcomplex[0m  for each entry [3Xk[0m[10X[i][0m (which has to be an integer) is
  returned. The faces are returned in the original labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2"); [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;      [0X
    [4X gap> rp2_6:=SC(rp2_6.Facets+10);;[0X
    [4X gap> SCSkelEx(rp2_6,1);[0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0X
    [4X   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0X
    [4X   [ 5, 6 ] ][0X
    [4X gap> SCSkel(rp2_6,1);  [0X
    [4X [ [ 11, 12 ], [ 11, 13 ], [ 11, 14 ], [ 11, 15 ], [ 11, 16 ], [ 12, 13 ], [0X
    [4X   [ 12, 14 ], [ 12, 15 ], [ 12, 16 ], [ 13, 14 ], [ 13, 15 ], [ 13, 16 ], [0X
    [4X   [ 14, 15 ], [ 14, 16 ], [ 15, 16 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-51 SCSkelEx[0m
  
  [2X> SCSkelEx( [0X[3Xcomplex, k[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  a face list or a list of face lists upon success, [9Xfail[0m otherwise.
  
  If  [3Xk[0m  is  an integer, the [3Xk[0m-skeleton of a simplicial complex [3Xcomplex[0m, i. e.
  all  [3Xk[0m-faces  of  [3Xcomplex[0m,  is  computed.  If  [3Xk[0m  is  a  list, a list of all
  [3Xk[0m[10X[i][0m-faces  of  [3Xcomplex[0m  for each entry [3Xk[0m[10X[i][0m (which has to be an integer) is
  returned. The faces are returned in the standard labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2"); [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(last[1][1]);;      [0X
    [4X gap> rp2_6:=SC(rp2_6.Facets+10);;[0X
    [4X gap> SCSkelEx(rp2_6,1);[0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0X
    [4X   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0X
    [4X   [ 5, 6 ] ][0X
    [4X gap> SCSkel(rp2_6,1);  [0X
    [4X [ [ 11, 12 ], [ 11, 13 ], [ 11, 14 ], [ 11, 15 ], [ 11, 16 ], [ 12, 13 ], [0X
    [4X   [ 12, 14 ], [ 12, 15 ], [ 12, 16 ], [ 13, 14 ], [ 13, 15 ], [ 13, 16 ], [0X
    [4X   [ 14, 15 ], [ 14, 16 ], [ 15, 16 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.6-52 SCSpanningTree[0m
  
  [2X> SCSpanningTree( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  a  spanning tree of a connected simplicial complex [3Xcomplex[0m using a
  greedy algorithm.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0X
    [4X gap> s:=SCSpanningTree(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="spanning tree of unnamed complex 1"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> s.Facets;[0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X6.7 Operations on simplicial complexes[0X
  
  The  following functions perform operations on simplicial complexes. Most of
  them  return  simplicial complexes. Thus, this section is closely related to
  the  Sections  [14X6.4[0m  ''Generate  new  complexes from old''. However, the data
  generated  here  is  rather  seen  as an intrinsic attribute of the original
  complex and not as an independent complex.
  
  [1X6.7-1 SCAlexanderDual[0m
  
  [2X> SCAlexanderDual( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  The Alexander dual of a simplicial complex [3Xcomplex[0m with set of vertices V is
  the simplicial complex where any subset of V spans a face if and only if its
  complement in V is a non-face of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[2,3],[3,4],[4,1]]);;[0X
    [4X gap> dual:=SCAlexanderDual(c);;[0X
    [4X gap> dual.F;[0X
    [4X [ 4, 2 ][0X
    [4X gap> dual.IsConnected;[0X
    [4X false[0X
    [4X gap> dual.Facets;[0X
    [4X [ [ 1, 3 ], [ 2, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-2 SCClose[0m
  
  [2X> SCClose( [0X[3Xcomplex[, apex][0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Closes a simplicial complex [3Xcomplex[0m by building a cone over its boundary. If
  [3Xapex[0m  is  specified  it is assigned to the apex of the cone and the original
  vertex labeling of [3Xcomplex[0m is preserved, otherwise an arbitrary vertex label
  is chosen and [3Xcomplex[0m is returned in the standard labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> s:=SCSimplex(5);;                                       [0X
    [4X gap> b:=SCSimplex(5);;[0X
    [4X gap> s:=SCClose(b,13);;[0X
    [4X gap> SCIsIsomorphic(s,SCBdSimplex(6));                       [0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-3 SCCollapseGreedy[0m
  
  [2X> SCCollapseGreedy( [0X[3Xcomplex[0X[2X ) ________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Employs  a  greedy  collapsing algorithm in order to collapse the simplicial
  complex   [3Xcomplex[0m.   The   source  code  of  this  function  is  taken  from
  [ManifoldPage].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"){[1..6]}; [0X
    [4X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[0X
    [4X   [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ] ][0X
    [4X gap> torus:=SCLib.Load(last[1][1]);;[0X
    [4X gap> bdtorus:=SCDifference(torus,SC([torus.Facets[1]]));;[0X
    [4X gap> coll:=SCCollapseGreedy(bdtorus);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="collapsed version of T^2 (VT) \ unnamed complex 18"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> coll.Facets;[0X
    [4X [ [ 3, 6 ], [ 3, 7 ], [ 5, 6 ], [ 5, 7 ], [ 6, 7 ] ][0X
    [4X gap> sphere:=SCBdSimplex(4);;                              [0X
    [4X gap> bdsphere:=SCDifference(sphere,SC([sphere.Facets[1]]));;[0X
    [4X gap> coll:=SCCollapseGreedy(bdsphere);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="collapsed version of S^3_5 \ unnamed complex 22"[0X
    [4X  Dim=0[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> coll.Facets;                     [0X
    [4X [ [ 5 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-4 SCCone[0m
  
  [2X> SCCone( [0X[3Xcomplex, apex[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  If  the  second  argument  is  passed  every facet of the simplicial complex
  [3Xcomplex[0m  is  united  with  [3Xapex[0m. If not, an arbitrary vertex label v is used
  (which  is  not  a vertex of [3Xcomplex[0m). In the first case the vertex labeling
  remains  unchanged.  In the second case the function returns the new complex
  in  the  standard  vertex labeling from 1 to n+1 and the apex of the cone is
  n+1.
  
  If called with a facet list instead of a [10XSCSimplicialComplex[0m object and [3Xapex[0m
  is not specified, internally falls back to the homology package [DHSW04], if
  available.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^3");[0X
    [4X [ [ 45, "RP^3" ], [ 113, "RP^3=L(2,1) (VT)" ], [ 589, "(S^2~S^1)#RP^3" ], [0X
    [4X   [ 590, "(S^2xS^1)#RP^3" ], [ 632, "(S^2~S^1)#2#RP^3" ], [0X
    [4X   [ 633, "(S^2xS^1)#2#RP^3" ], [ 2414, "RP^3#RP^3" ], [0X
    [4X   [ 2426, "RP^3=L(2,1) (VT)" ], [ 2488, "(S^2~S^1)#3#RP^3" ], [0X
    [4X   [ 2489, "(S^2xS^1)#3#RP^3" ], [ 2502, "RP^3=L(2,1) (VT)" ], [0X
    [4X   [ 7473, "(S^2~S^1)#4#RP^3" ], [ 7474, "(S^2xS^1)#4#RP^3" ], [0X
    [4X   [ 7505, "(S^2~S^1)#5#RP^3" ], [ 7506, "(S^2xS^1)#5#RP^3" ] ][0X
    [4X gap> rp3:=SCLib.Load(last[1][1]);;[0X
    [4X gap> rp3.F;[0X
    [4X [ 11, 51, 80, 40 ][0X
    [4X gap> cone:=SCCone(rp3);;[0X
    [4X gap> cone.F;[0X
    [4X [ 12, 62, 131, 120, 40 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> s:=SCBdSimplex(4)+12;;[0X
    [4X gap> s.Facets;             [0X
    [4X [ [ 13, 14, 15, 16 ], [ 13, 14, 15, 17 ], [ 13, 14, 16, 17 ], [0X
    [4X   [ 13, 15, 16, 17 ], [ 14, 15, 16, 17 ] ][0X
    [4X gap> cc:=SCCone(s,13);;    [0X
    [4X gap> cc:=SCCone(s,12);;[0X
    [4X gap> cc.Facets;[0X
    [4X [ [ 12, 13, 14, 15, 16 ], [ 12, 13, 14, 15, 17 ], [ 12, 13, 14, 16, 17 ], [0X
    [4X   [ 12, 13, 15, 16, 17 ], [ 12, 14, 15, 16, 17 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-5 SCDeletedJoin[0m
  
  [2X> SCDeletedJoin( [0X[3Xcomplex1, complex2[0X[2X ) ________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Calculates  the simplicial deleted join of the simplicial complexes [3Xcomplex1[0m
  and  [3Xcomplex2[0m.  If called with a facet list instead of a [10XSCSimplicialComplex[0m
  object, the function internally falls back to the [5Xhomology[0m package [DHSW04],
  if available.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> deljoin:=SCDeletedJoin(SCBdSimplex(3),SCBdSimplex(3));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="S^2_4 deljoin S^2_4"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> bddeljoin:=SCBoundary(deljoin);;[0X
    [4X gap> bddeljoin.Homology;[0X
    [4X [ [ 1, [  ] ], [ 0, [  ] ], [ 2, [  ] ] ][0X
    [4X gap> deljoin.Facets;[0X
    [4X [ [ [ 1, 1 ], [ 2, 1 ], [ 3, 1 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 1 ], [ 3, 2 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 1 ], [ 3, 2 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 2 ], [ 3, 1 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 2 ], [ 3, 1 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 2 ], [ 3, 2 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 2 ], [ 3, 2 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 1 ], [ 3, 1 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 1 ], [ 3, 1 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 2 ], [ 3, 1 ], [ 4, 1 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 2 ], [ 3, 1 ], [ 4, 2 ] ], [0X
    [4X   [ [ 1, 2 ], [ 2, 2 ], [ 3, 2 ], [ 4, 1 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-6 SCDifference[0m
  
  [2X> SCDifference( [0X[3Xcomplex1, complex2[0X[2X ) _________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Forms  the  ``difference'' of two simplicial complexes [3Xcomplex1[0m and [3Xcomplex2[0m
  as  the  simplicial complex formed by the difference of the face lattices of
  [3Xcomplex1[0m  minus  [3Xcomplex2[0m.  The two arguments are not altered. Note: for the
  difference  process  the  vertex  labelings  of the complexes are taken into
  account,     see    also    [2XOperation    Difference    (SCSimplicialComplex,
  SCSimplicialComplex)[0m ([14X5.3-2[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> d:=SC([[1,2,3]]);;[0X
    [4X gap> disc:=SCDifference(c,d);;[0X
    [4X gap> disc.Facets;[0X
    [4X [ [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0X
    [4X gap> empty:=SCDifference(d,c);;[0X
    [4X gap> empty.Dim;[0X
    [4X -1[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-7 SCFillSphere[0m
  
  [2X> SCFillSphere( [0X[3Xcomplex[, vertex][0X[2X ) ________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise .
  
  Fills  the  given simplicial sphere [3Xcomplex[0m by forming the suspension of the
  anti  star of [3Xvertex[0m over [3Xvertex[0m. This is a triangulated (d+1)-ball with the
  boundary  [3Xcomplex[0m,  see  [BD08a].  If  the  optional  argument [3Xvertex[0m is not
  supplied, the first vertex of [3Xcomplex[0m is chosen.
  
  Note that it is not checked whether [3Xcomplex[0m really is a simplicial sphere --
  this has to be done by the user!
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("S^4");[0X
    [4X [ [ 36, "S^4 (VT)" ], [ 37, "S^4 (VT)" ], [ 38, "S^4 (VT)" ], [0X
    [4X   [ 130, "S^4 (VT)" ], [ 463, "S^4~S^1 (VT)" ], [ 713, "S^4xS^1 (VT)" ], [0X
    [4X   [ 1472, "S^4xS^1 (VT)" ], [ 1473, "S^4~S^1 (VT)" ], [0X
    [4X   [ 1474, "S^4~S^1 (VT)" ], [ 1475, "S^4xS^1 (VT)" ], [0X
    [4X   [ 2477, "S^4~S^1 (VT)" ], [ 2478, "S^4 (VT)" ], [ 3435, "S^4 (VT)" ], [0X
    [4X   [ 4395, "S^4~S^1 (VT)" ], [ 4396, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4397, "S^4~S^1 (VT)" ], [ 4398, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4399, "S^4~S^1 (VT)" ], [ 4402, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4403, "S^4~S^1 (VT)" ], [ 4404, "S^4~S^1 (VT)" ], [ 7479, "S^4xS^2" ], [0X
    [4X   [ 7540, "S^4xS^3" ], [ 7574, "S^4xS^4" ] ][0X
    [4X gap> s:=SCLib.Load(last[1][1]);;[0X
    [4X gap> filled:=SCFillSphere(s);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="FilledSphere(S^4 (VT)) at vertex [ 1 ]"[0X
    [4X  Dim=5[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCHomology(filled);[0X
    [4X [ [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ], [0X
    [4X   [ 0, [  ] ] ][0X
    [4X gap> SCCollapseGreedy(filled);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="collapsed version of FilledSphere(S^4 (VT)) at vertex [ 1 ]"[0X
    [4X  Dim=0[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> bd:=SCBoundary(filled);;[0X
    [4X gap> bd=s;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-8 SCHandleAddition[0m
  
  [2X> SCHandleAddition( [0X[3Xcomplex, f1, f2[0X[2X ) ________________________________[0Xmethod
  [6XReturns:[0X  simplicial complex of type [10XSCSimplicialComplex[0m, [9Xfail[0m otherwise.
  
  Returns  a  simplicial complex obtained by identifying the vertices of facet
  [3Xf1[0m  with  the ones from facet [3Xf2[0m in [3Xcomplex[0m. A combinatorial handle addition
  is  possible, whenever we have d(v,w) >= 3 for any two vertices v in[3Xf1[0m and w
  in[3Xf2[0m,  where  d(*,*)  is  the  length of the shortest path from v to w. This
  condition  is  not  checked  by  this  algorithm.  See  [BD08b]  for further
  information.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,4],[2,4,5],[2,3,5],[3,5,6],[1,3,6],[1,4,6]]);;[0X
    [4X gap> c:=SCUnion(c,SCUnion(SCCopy(c)+3,SCCopy(c)+6));;[0X
    [4X gap> c:=SCUnion(c,SC([[1,2,3],[10,11,12]]));;[0X
    [4X gap> c.Facets;[0X
    [4X [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 6 ], [ 1, 4, 6 ], [ 2, 3, 5 ], [0X
    [4X   [ 2, 4, 5 ], [ 3, 5, 6 ], [ 4, 5, 7 ], [ 4, 6, 9 ], [ 4, 7, 9 ], [0X
    [4X   [ 5, 6, 8 ], [ 5, 7, 8 ], [ 6, 8, 9 ], [ 7, 8, 10 ], [ 7, 9, 12 ], [0X
    [4X   [ 7, 10, 12 ], [ 8, 9, 11 ], [ 8, 10, 11 ], [ 9, 11, 12 ], [ 10, 11, 12 ] ][0X
    [4X gap> c.Homology;[0X
    [4X [ [ 0, [  ] ], [ 0, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> torus:=SCHandleAddition(c,[1,2,3],[10,11,12]);;[0X
    [4X gap> torus.Homology;[0X
    [4X [ [ 0, [  ] ], [ 2, [  ] ], [ 1, [  ] ] ][0X
    [4X gap> ism:=SCIsManifold(torus);;[0X
    [4X gap> ism;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-9 SCIntersection[0m
  
  [2X> SCIntersection( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Forms the ``intersection'' of two simplicial complexes [3Xcomplex1[0m and [3Xcomplex2[0m
  as the simplicial complex formed by the intersection of the face lattices of
  [3Xcomplex1[0m  and  [3Xcomplex2[0m.  The  two  arguments are not altered. Note: for the
  intersection  process  the  vertex labelings of the complexes are taken into
  account.    See    also    [2XOperation    Intersection   (SCSimplicialComplex,
  SCSimplicialComplex)[0m ([14X5.3-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;        [0X
    [4X gap> d:=SCBdSimplex(3)+1;;      [0X
    [4X gap> d.Facets;[0X
    [4X [ [ 2, 3, 4 ], [ 2, 3, 5 ], [ 2, 4, 5 ], [ 3, 4, 5 ] ][0X
    [4X gap> c:=SCBdSimplex(3);;  [0X
    [4X gap> d:=SCBdSimplex(3);;  [0X
    [4X gap> d:=SCMove(d,[[1,2,3],[]])+1;;[0X
    [4X gap> s1:=SCIntersection(c,d);;[0X
    [4X gap> s1.Facets;               [0X
    [4X [ [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-10 SCIsIsomorphic[0m
  
  [2X> SCIsIsomorphic( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  The function returns [9Xtrue[0m, if the simplicial complexes [3Xcomplex1[0m and [3Xcomplex2[0m
  are combinatorially isomorphic, [9Xfalse[0m if not.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0X
    [4X gap> c2:=SCBdSimplex(3);;[0X
    [4X gap> SCIsIsomorphic(c1,c2);[0X
    [4X true[0X
    [4X gap> c3:=SCBdCrossPolytope(3);;[0X
    [4X gap> SCIsIsomorphic(c1,c3);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-11 SCIsSubcomplex[0m
  
  [2X> SCIsSubcomplex( [0X[3Xsc1, sc2[0X[2X ) _________________________________________[0Xmethod
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Returns  [9Xtrue[0m  if  the simplicial complex [3Xsc2[0m is a sub-complex of simplicial
  complex  [3Xsc1[0m, [9Xfalse[0m otherwise. If dim([3Xsc2[0m) <= dim([3Xsc1[0m) the facets of [3Xsc2[0m are
  compared  with  the dim([3Xsc2[0m)-skeleton of [3Xsc1[0m. Only works for pure simplicial
  complexes.  Note:  for  the intersection process the vertex labelings of the
  complexes are taken into account.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByAttribute("F[1]=10"){[1..10]};[0X
    [4X [ [ 17, "K^2 (VT)" ], [ 18, "T^2 (VT)" ], [ 19, "S^3 (VT)" ], [0X
    [4X   [ 20, "(T^2)#2" ], [ 21, "S^3 (VT)" ], [ 22, "S^2xS^1 (VT)" ], [0X
    [4X   [ 23, "S^3 (VT)" ], [ 24, "(T^2)#3" ], [ 25, "(P^2)#7 (VT)" ], [0X
    [4X   [ 26, "S^3 (VT)" ] ][0X
    [4X gap> k:=SCLib.Load(last[1][1]);;[0X
    [4X gap> c:=SCBdSimplex(9);;[0X
    [4X gap> k.F;[0X
    [4X [ 10, 30, 20 ][0X
    [4X gap> c.F;[0X
    [4X [ 10, 45, 120, 210, 252, 210, 120, 45, 10 ][0X
    [4X gap> SCIsSubcomplex(c,k);[0X
    [4X true[0X
    [4X gap> SCIsSubcomplex(k,c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-12 SCIsomorphism[0m
  
  [2X> SCIsomorphism( [0X[3Xcomplex1, complex2[0X[2X ) ________________________________[0Xmethod
  [6XReturns:[0X  a  list  of  pairs  of  vertex  labels or [9Xfalse[0m upon success, [9Xfail[0m
            otherwise.
  
  Returns  an isomorphism of simplicial complex [3Xcomplex1[0m to simplicial complex
  [3Xcomplex2[0m  in  the  standard labeling if they are combinatorially isomorphic,
  [9Xfalse[0m otherwise. Internally calls [2XSCIsomorphismEx[0m ([14X6.7-13[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0X
    [4X gap> c2:=SCBdSimplex(3);;[0X
    [4X gap> SCIsomorphism(c1,c2);[0X
    [4X [ [ 11, 1 ], [ 12, 2 ], [ 13, 3 ], [ 14, 4 ] ][0X
    [4X gap> SCIsomorphismEx(c1,c2);[0X
    [4X [ [ [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 4, 4 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-13 SCIsomorphismEx[0m
  
  [2X> SCIsomorphismEx( [0X[3Xcomplex1, complex2[0X[2X ) ______________________________[0Xmethod
  [6XReturns:[0X  a  list  of  pairs  of  vertex  labels or [9Xfalse[0m upon success, [9Xfail[0m
            otherwise.
  
  Returns  an isomorphism of simplicial complex [3Xcomplex1[0m to simplicial complex
  [3Xcomplex2[0m  in  the  standard labeling if they are combinatorially isomorphic,
  [9Xfalse[0m  otherwise. If the f-vector and the Altshuler-Steinberg determinant of
  [3Xcomplex1[0m     and    [3Xcomplex2[0m    are    equal,    the    internal    function
  [10XSCIntFunc.SCComputeIsomorphismsEx(complex1,complex2,true)[0m is called.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0X
    [4X gap> c2:=SCBdSimplex(3);;[0X
    [4X gap> SCIsomorphism(c1,c2);[0X
    [4X [ [ 11, 1 ], [ 12, 2 ], [ 13, 3 ], [ 14, 4 ] ][0X
    [4X gap> SCIsomorphismEx(c1,c2);[0X
    [4X [ [ [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 4, 4 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-14 SCJoin[0m
  
  [2X> SCJoin( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Calculates  the  simplicial  join  of  the simplicial complexes [3Xcomplex1[0m and
  [3Xcomplex2[0m.  If  facet lists instead of [10XSCSimplicialComplex[0m objects are passed
  as  arguments,  the  function  internally falls back to the homology package
  [DHSW04],  if  available.  Note  that  the vertex labelings of the complexes
  passed as arguments are not propagated to the new complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> sphere:=SCJoin(SCBdSimplex(2),SCBdSimplex(2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="S^1_3 join S^1_3"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCHasBoundary(sphere);[0X
    [4X false[0X
    [4X gap> sphere.Facets;[0X
    [4X [ [ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 2, 2 ] ], [0X
    [4X   [ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 1 ], [ 1, 2 ], [ 2, 2 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 1 ], [ 1, 3 ], [ 2, 1 ], [ 2, 2 ] ], [0X
    [4X   [ [ 1, 1 ], [ 1, 3 ], [ 2, 1 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 1 ], [ 1, 3 ], [ 2, 2 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 2 ], [ 1, 3 ], [ 2, 1 ], [ 2, 2 ] ], [0X
    [4X   [ [ 1, 2 ], [ 1, 3 ], [ 2, 1 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 2 ], [ 1, 3 ], [ 2, 2 ], [ 2, 3 ] ] ][0X
    [4X gap> sphere.Homology;[0X
    [4X [ [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ], [ 1, [  ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> ball:=SCJoin(SC([[1]]),SCBdSimplex(2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 4 join S^1_3"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> ball.Homology;[0X
    [4X [ [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ] ][0X
    [4X gap> ball.Facets;[0X
    [4X [ [ [ 1, 1 ], [ 2, 1 ], [ 2, 2 ] ], [ [ 1, 1 ], [ 2, 1 ], [ 2, 3 ] ], [0X
    [4X   [ [ 1, 1 ], [ 2, 2 ], [ 2, 3 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-15 SCNeighbors[0m
  
  [2X> SCNeighbors( [0X[3Xcomplex, face[0X[2X ) _______________________________________[0Xmethod
  [6XReturns:[0X  a list of faces upon success, [9Xfail[0m otherwise.
  
  In  a simplicial complex [3Xcomplex[0m all neighbors of the [10Xk[0m-face [3Xface[0m, i. e. all
  [10Xk[0m-faces  distinct  from  [3Xface[0m intersecting with [3Xface[0m in a common (k-1)-face,
  are returned in the original labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 29"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCNeighbors(c,["a","d"]);[0X
    [4X [ [ "a", "b" ], [ "a", "c" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-16 SCNeighborsEx[0m
  
  [2X> SCNeighborsEx( [0X[3Xcomplex, face[0X[2X ) _____________________________________[0Xmethod
  [6XReturns:[0X  a list of faces upon success, [9Xfail[0m otherwise.
  
  In  a simplicial complex [3Xcomplex[0m all neighbors of the [10Xk[0m-face [3Xface[0m, i. e. all
  [10Xk[0m-faces  distinct  from  [3Xface[0m intersecting with [3Xface[0m in a common (k-1)-face,
  are returned in the standard labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 28"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCLabels(c);[0X
    [4X [ "a", "b", "c" ][0X
    [4X gap> SCNeighborsEx(c,[1,2]);[0X
    [4X [ [ 1, 3 ], [ 2, 3 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-17 SCShelling[0m
  
  [2X> SCShelling( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xmethod
  [6XReturns:[0X  a facet list or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  The  simplicial  complex  [3Xcomplex[0m  must be pure, strongly connected and must
  fulfill  the  weak  pseudomanifold  property  with  non-empty  boundary (cf.
  [2XSCBoundary[0m ([14X6.6-7[0m)).
  
  An  ordering (F_1, F_2, ... , F_r) on the facet list of a simplicial complex
  is  a  shelling  if  and  only  if F_i cap (F_1 cup ... cup F_i-1) is a pure
  simplicial complex of dimension d-1 for all i = 1, ... , r.
  
  The function checks whether [3Xcomplex[0m is shellable or not. In the first case a
  permuted  version  of  the  facet  list  of  [3Xcomplex[0m  is returned encoding a
  shelling of [3Xcomplex[0m, otherwise [9Xfalse[0m is returned.
  
  Internally  calls  [2XSCShellingExt[0m  ([14X6.7-18[0m)[10X(complex,false,[]);[0m. To learn more
  about shellings see [Zie95], [Pac87].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[1,2,4],[1,3,4]]);;[0X
    [4X gap> SCShelling(c);[0X
    [4X [ [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-18 SCShellingExt[0m
  
  [2X> SCShellingExt( [0X[3Xcomplex, all, checkvector[0X[2X ) _________________________[0Xmethod
  [6XReturns:[0X  a  list  of facet lists (if [3Xcheckvector = [][0m) or [9Xtrue[0m or [9Xfalse[0m (if
            [3Xcheckvector[0m is not empty), [9Xfail[0m otherwise.
  
  The  simplicial  complex  [3Xcomplex[0m  must  be  pure  of  dimension d, strongly
  connected  and  must fulfill the weak pseudomanifold property with non-empty
  boundary (cf. [2XSCBoundary[0m ([14X6.6-7[0m)).
  
  An  ordering (F_1, F_2, ... , F_r) on the facet list of a simplicial complex
  is  a  shelling  if  and  only  if F_i cap (F_1 cup ... cup F_i-1) is a pure
  simplicial complex of dimension d-1 for all i = 1, ... , r.
  
  If [3Xall[0m is set to [9Xtrue[0m all possible shellings of [3Xcomplex[0m are computed. If [3Xall[0m
  is set to [9Xfalse[0m, at most one shelling is computed.
  
  Every  shelling  is  represented  as a permuted version of the facet list of
  [3Xcomplex[0m.  The list [3Xcheckvector[0m encodes a shelling in a shorter form. It only
  contains  the  indices  of the facets. If an order of indices is assigned to
  [3Xcheckvector[0m the function tests whether it is a valid shelling or not.
  
  See [Zie95], [Pac87] to learn more about shellings.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");                 [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][0X
    [4X gap> rp2:=SCLib.Load(last[1][1]);;                        [0X
    [4X gap> rp2:=SCDifference(rp2,SC([rp2.Facets[1]]));; # bounded version[0X
    [4X gap> all:=SCShellingExt(rp2,true,[]);;[0X
    [4X gap> Size(all);                                  [0X
    [4X 1488[0X
    [4X gap> all[1];[0X
    [4X [ [ 1, 2, 6 ], [ 1, 4, 6 ], [ 1, 4, 5 ], [ 1, 3, 5 ], [ 2, 4, 5 ], [0X
    [4X   [ 2, 3, 4 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ] ][0X
    [4X gap> all:=SCShellingExt(rp2,false,[]);[0X
    [4X [ [ [ 1, 2, 6 ], [ 1, 4, 6 ], [ 1, 4, 5 ], [ 1, 3, 5 ], [ 2, 4, 5 ], [0X
    [4X       [ 2, 3, 4 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ] ] ][0X
    [4X gap> all:=SCShellingExt(rp2,false,[4, 9, 3, 2, 5, 6, 7, 1, 8]);[0X
    [4X true[0X
    [4X gap> all:=SCShellingExt(rp2,true,[4, 9, 3, 2, 5, 6, 7, 1, 8]);[0X
    [4X true[0X
    [4X gap> all:=SCShellingExt(rp2,true,[1 .. 9]);[0X
    [4X #I  SCShellingExt: 2 is not a valid shelling facet.[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-19 SCShellings[0m
  
  [2X> SCShellings( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xmethod
  [6XReturns:[0X  a list of facet lists upon success, [9Xfail[0m otherwise.
  
  The  simplicial  complex  [3Xcomplex[0m  must be pure, strongly connected and must
  fulfill  the  weak  pseudomanifold  property  with  non-empty  boundary (cf.
  [2XSCBoundary[0m ([14X6.6-7[0m)).
  
  An  ordering (F_1, F_2, ... , F_r) on the facet list of a simplicial complex
  is  a  shelling  if  and  only  if F_i cap (F_1 cup ... cup F_i-1) is a pure
  simplicial complex of dimension d-1 for all i = 1, ... , r.
  
  The function checks whether [3Xcomplex[0m is shellable or not. In the first case a
  list  of permuted facet lists of [3Xcomplex[0m is returned containing all possible
  shellings of [3Xcomplex[0m, otherwise [9Xfalse[0m is returned.
  
  Internally  calls  [2XSCShellingExt[0m  ([14X6.7-18[0m)[10X(complex,true,[]);[0m.  To learn more
  about shellings see [Zie95], [Pac87].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2,3],[1,2,4],[1,3,4]]);;[0X
    [4X gap> SCShellings(c);[0X
    [4X [ [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ] ], [0X
    [4X   [ [ 1, 2, 3 ], [ 1, 3, 4 ], [ 1, 2, 4 ] ], [0X
    [4X   [ [ 1, 2, 4 ], [ 1, 2, 3 ], [ 1, 3, 4 ] ], [0X
    [4X   [ [ 1, 3, 4 ], [ 1, 2, 3 ], [ 1, 2, 4 ] ], [0X
    [4X   [ [ 1, 2, 4 ], [ 1, 3, 4 ], [ 1, 2, 3 ] ], [0X
    [4X   [ [ 1, 3, 4 ], [ 1, 2, 4 ], [ 1, 2, 3 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-20 SCSpan[0m
  
  [2X> SCSpan( [0X[3Xcomplex, subset[0X[2X ) __________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Computes  the  reduced  face  lattice  of  all faces of a simplicial complex
  [3Xcomplex[0m  that  are  spanned  by  [3Xsubset[0m,  a subset of the set of vertices of
  [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCVertices(c);[0X
    [4X [ 1, 2, 3, 4, 5, 6, 7, 8 ][0X
    [4X gap> span:=SCSpan(c,[1,2,3,4]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="span([ 1, 2, 3, 4 ]) in Bd(\beta^4)"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> span.Facets;[0X
    [4X [ [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[1,4,5],[2,3,4]]);;[0X
    [4X gap> span:=SCSpan(c,[2,3,5]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="span([ 2, 3, 5 ]) in unnamed complex 119"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCFacets(span);[0X
    [4X [ [ 2, 3 ], [ 5 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-21 SCSuspension[0m
  
  [2X> SCSuspension( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Calculates  the  simplicial  suspension  of  the simplicial complex [3Xcomplex[0m.
  Internally  falls  back to the homology package [DHSW04] (if available) if a
  facet  list  is  passed  as  argument. Note that the vertex labelings of the
  complexes passed as arguments are not propagated to the new complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("Poincare");[0X
    [4X [ [ 7469, "Poincare_sphere" ] ][0X
    [4X gap> phs:=SCLib.Load(last[1][1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, ConnectedComponents, [0X
    [4X                    Dim, DualGraph, EulerCharacteristic, FVector, [0X
    [4X                    FacetsEx, GVector, GeneratorsEx, HVector, [0X
    [4X                    HasBoundary, HasInterior, Homology, Interior, [0X
    [4X                    IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, [0X
    [4X                    IsPseudoManifold, IsPure, IsStronglyConnected, [0X
    [4X                    MinimalNonFacesEx, Name, Neighborliness, [0X
    [4X                    NumFaces[], Orientation, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="Poincare_sphere"[0X
    [4X  Dim=3[0X
    [4X  AltshulerSteinberg=115400413872363901952[0X
    [4X  AutomorphismGroupSize=1[0X
    [4X  AutomorphismGroupStructure="1"[0X
    [4X  AutomorphismGroupTransitivity=0[0X
    [4X  EulerCharacteristic=0[0X
    [4X  FVector=[ 16, 106, 180, 90 ][0X
    [4X  GVector=[ 11, 52 ][0X
    [4X  HVector=[ 12, 64, 12, 1 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=true[0X
    [4X  IsPseudoManifold=true[0X
    [4X  IsPure=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  Neighborliness=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> susp:=SCSuspension(phs);;[0X
    [4X gap> edwardsSphere:=SCSuspension(susp);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="susp of susp of Poincare_sphere"[0X
    [4X  Dim=5[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-22 SCUnion[0m
  
  [2X> SCUnion( [0X[3Xcomplex1, complex2[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Forms  the  union  of  two simplicial complexes [3Xcomplex1[0m and [3Xcomplex2[0m as the
  simplicial  complex  formed  by  the  union  of  their  facets sets. The two
  arguments  are not altered. Note: for the union process the vertex labelings
  of   the  complexes  are  taken  into  account,  see  also  [2XOperation  Union
  (SCSimplicialComplex, SCSimplicialComplex)[0m ([14X5.3-1[0m). Facets occurring in both
  arguments are treated as one facet in the new complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCUnion(SCBdSimplex(3),SCBdSimplex(3)+3); #a wedge of two 2-spheres[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="S^2_4 cup S^2_4"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-23 SCVertexIdentification[0m
  
  [2X> SCVertexIdentification( [0X[3Xcomplex, v1, v2[0X[2X ) __________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Identifies  vertex  [3Xv1[0m  with  vertex  [3Xv2[0m in a simplicial complex [3Xcomplex[0m and
  returns  the result as a new object. A vertex identification of [3Xv1[0m and [3Xv2[0m is
  possible whenever d([3Xv1[0m,[3Xv2[0m) >= 3. This is not checked by this algorithm.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[2,3],[3,4]]);;[0X
    [4X gap> circle:=SCVertexIdentification(c,[1],[4]);;[0X
    [4X gap> circle.Facets;[0X
    [4X [ [ 1, 2 ], [ 1, 3 ], [ 2, 3 ] ][0X
    [4X gap> circle.Homology;[0X
    [4X [ [ 0, [  ] ], [ 1, [  ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.7-24 SCWedge[0m
  
  [2X> SCWedge( [0X[3Xcomplex1, complex2[0X[2X ) ______________________________________[0Xmethod
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Calculates  the  wedge  product of the complexes supplied as arguments. Note
  that  the  vertex  labelings  of  the  complexes passed as arguments are not
  propagated to the new complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> wedge:=SCWedge(SCBdSimplex(2),SCBdSimplex(2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 17"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> wedge.Facets;[0X
    [4X [ [ 1, [ 1, 2 ] ], [ 1, [ 1, 3 ] ], [ 1, [ 2, 2 ] ], [ 1, [ 2, 3 ] ], [0X
    [4X   [ [ 1, 2 ], [ 1, 3 ] ], [ [ 2, 2 ], [ 2, 3 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
