  
  [1X4 Functions for simplicial complexes[0X
  
  
  [1X4.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.
  
  [1X4.1-1 SCFromFacets[0m
  
  [2X> SCFromFacets( [0X[3Xfacets[0X[2X ) ___________________________________________[0Xfunction
  [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. Any vertex labeling
  can be used, even sets as vertex labels are allowed. Internally the vertices
  are  mapped to the standard labeling 1..N, where N is the number of vertices
  of  the complex, but the vertex labels of the original complex are stored in
  the  property  ''VertexLabels'',  see  [2XSCLabels[0m  ([14X4.5-3[0m) and the [10XSCRelabel..[0m
  functions like [2XSCRelabel[0m ([14X4.5-4[0m) or [2XSCRelabelStandard[0m ([14X4.5-5[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets([[1,2,5], [1,4,5], [1,4,6], [2,3,5], [0X
    [4X                       [3,4,6], [3,5,6]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c:=SCFromFacets([["a","d","e"], ["a","b","e"], ["b","c","e"],[0X
    [4X                       ["c","e","f"], ["c","d","f"], ["a", "d", "f"]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.1-2 SC[0m
  
  [2X> SC( [0X[3Xfacets[0X[2X ) _____________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type SCSimplicialComplex upon success, fail
            otherwise.
  
  A  shorter  function  to create a simplicial complex from a facet list, just
  calls [2XSCFromFacets[0m ([14X4.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, Facets, VertexLabels.[0X
    [4X[0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=4[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.1-3 SCFromDifferenceCycles[0m
  
  [2X> SCFromDifferenceCycles( [0X[3Xdiffcycles[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  a simplicial complex 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 ([14X4.3-8[0m). Otherwise the induced modulus of all
  cycles  has  to  be equal and the union of all expanded difference cycles is
  returned.
  
  [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 #I  SCIsManifold: link is sphere.[0X
    [4X #I  SCIsManifold: transitive automorphism group, checking only one link.[0X
    [4X true[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.1-4 SCFromGenerators[0m
  
  [2X> SCFromGenerators( [0X[3Xgroup, generators[0X[2X ) ____________________________[0Xfunction
  [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 automorphism group
  that  consists of the orbits specified by the list of representatives passed
  in [3Xgenerators[0m. Internally calls [2XSCFromFacets[0m ([14X4.1-1[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> #group: (C7 : C3) : C2, 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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCLib.DetermineTopologicalType(c);[0X
    [4X [ [ true, 5 ] ][0X
    [4X gap> # a torus[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X4.2 Generating some standard triangulations[0X
  
  [1X4.2-1 SCBdCrossPolytope[0m
  
  [2X> SCBdCrossPolytope( [0X[3Xdim[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Generates the boundary of the dim-dimensional cross polytope beta^d.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBdCrossPolytope(3); # the octahedron[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Chi, Dim, F, Facets, HasBoundary, Homology, IsConnected, [0X
    [4X                    IsStronglyConnected, Name, TopologicalType, VertexLabels.[0X
    [4X [0X
    [4X  Name="Bd(\beta^3)"[0X
    [4X  Dim=2[0X
    [4X  Chi=2[0X
    [4X  F=[ 6, 12, 8 ][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
  
  [1X4.2-2 SCBdCyclicPolytope[0m
  
  [2X> SCBdCyclicPolytope( [0X[3Xd, n[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Generates  the  boundary  complex  of the [3Xd[0m-dimensional cyclic polytope 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: Chi, Dim, F, Facets, HasBoundary, Homology, IsConnected, [0X
    [4X                    IsStronglyConnected, Name, TopologicalType, VertexLabels.[0X
    [4X [0X
    [4X  Name="Bd(C_3(8))"[0X
    [4X  Dim=2[0X
    [4X  Chi=2[0X
    [4X  F=[ 8, 18, 12 ][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
  
  [1X4.2-3 SCBdSimplex[0m
  
  [2X> SCBdSimplex( [0X[3Xdim[0X[2X ) _______________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Generates the boundary of the d-simplex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBdSimplex(5);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupOrder, [0X
    [4X                    AutomorphismGroupStructure, AutomorphismGroupTransitivity, [0X
    [4X                    Chi, Dim, F, Facets, Generators, HasBoundary, Homology, [0X
    [4X                    IsConnected, IsStronglyConnected, Name, TopologicalType, [0X
    [4X                    VertexLabels.[0X
    [4X [0X
    [4X  Name="S^4_6"[0X
    [4X  Dim=4[0X
    [4X  AutomorphismGroupStructure="S6"[0X
    [4X  AutomorphismGroupTransitivity=6[0X
    [4X  Chi=2[0X
    [4X  F=[ 6, 15, 20, 15, 6 ][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
  
  [1X4.2-4 SCEmpty[0m
  
  [2X> SCEmpty( [0X[3X[0X[2X ) ______________________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex  with  empty  facet  list  upon  success, [9Xfail[0m
            otherwise.
  
  Generates an empty complex (of dimension -1).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCEmpty();[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Faces, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="empty complex"[0X
    [4X  Dim=-1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.2-5 SCSimplex[0m
  
  [2X> SCSimplex( [0X[3Xdim[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Generates the [3Xdim[0m-simplex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCSimplex(3);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Chi, Dim, Facets, Name, TopologicalType, VertexLabels.[0X
    [4X [0X
    [4X  Name="B^3_4"[0X
    [4X  Dim=3[0X
    [4X  Chi=1[0X
    [4X  TopologicalType="B^3"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.2-6 SCFVectorBdCrossPolytope[0m
  
  [2X> SCFVectorBdCrossPolytope( [0X[3Xdim[0X[2X ) __________________________________[0Xfunction
  [6XReturns:[0X  a list of integers of size [10Xdim + 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
    [4XSCFVectorBdCrossPolytope(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
  
  [1X4.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
  
  [1X4.2-8 SCFVectorBdSimplex[0m
  
  [2X> SCFVectorBdSimplex( [0X[3Xdim[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  a list of integers of size [10Xdim + 1[0m upon success, [9Xfail[0m otherwise.
  
  Computes  the  f-vector  of  the d-simplex without generating the underlying
  complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X 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
  
  
  [1X4.3 Generating new complexes from old[0X
  
  [1X4.3-1 SCCartesianPower[0m
  
  [2X> SCCartesianPower( [0X[3Xcomplex, n[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  The  new  complex  is  PL-homeomorphic  to  n-times the cartesian product of
  [3Xcomplex[0m,  of dimensions n * dim and has f_dim^n * n * frac2n-12^n-1}! facets
  where dim denotes the dimension of [3Xcomplex[0m.
  
  [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, Facets, Name, TopologicalType, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-2 SCCartesianProduct[0m
  
  [2X> SCCartesianProduct( [0X[3Xcomplex1, complex2[0X[2X ) _________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex 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 if 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, Facets, Name, TopologicalType, VertexLabels.[0X
    [4X [0X
    [4X  Name="S^1_3xS^2_4"[0X
    [4X  Dim=3[0X
    [4X  TopologicalType="S^1xS^2"[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-3 SCConnectedComponents[0m
  
  [2X> SCConnectedComponents( [0X[3Xcomplex[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  a list of simplicial complexes 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, Facets, Name, VertexLabels.[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, Facets, Name, VertexLabels.[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: Chi, Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X      Name="Connected component #2 of non-connected complex"[0X
    [4X      Dim=1[0X
    [4X      Chi=0[0X
    [4X [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X      Name="Connected component #3 of non-connected complex"[0X
    [4X      Dim=2[0X
    [4X [0X
    [4X     /SimplicialComplex] ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-4 SCConnectedProduct[0m
  
  [2X> SCConnectedProduct( [0X[3Xcomplex, n[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  a simplicial complex upon success, [9Xfail[0m otherwise.
  
  If  n  >=  2,  the  function internally calls 1 x [2XSCConnectedSum[0m ([14X4.3-5[0m) and
  (n-2) x [2XSCConnectedSumMinus[0m ([14X4.3-6[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2");[0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> genus10:=SCConnectedProduct(torus,10);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-5 SCConnectedSum[0m
  
  [2X> SCConnectedSum( [0X[3Xcomplex1, complex2[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  The  function  removes  the first simplex of [3Xcomplex1[0m and [3Xcomplex2[0m and glues
  them  together  along the boundary. The boundary components of the complexes
  are  glued  in  with  a  twist  (a transposition on the vertex labels of the
  boundary    of   [10Xcomplex2[0m).   Thus,   [10XSCConnectedSum[0m   is   different   from
  [2XSCConnectedSumMinus[0m  ([14X4.3-6[0m)  whenever [3Xcomplex1[0m and [3Xcomplex2[0m do not allow an
  orientation reversing homeomorphism.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2");[0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> genus2:=SCConnectedSum(torus,torus);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("CP^2");[0X
    [4X [ [ 17, "CP^2 (VT)" ], [ 88, "CP^2#CP^2" ], [ 89, "CP^2#-CP^2" ], [0X
    [4X   [ 186, "CP^2#(S^2xS^2)" ], [ 499, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0X
    [4X gap> cp2:=SCLib.Load(17);;[0X
    [4X # CP^2 # CP^2 (signature of intersection form is 2)  [0X
    [4X gap> c1:=SCConnectedSum(cp2,cp2);;[0X
    [4X # CP^2 # - CP^2 (signature of intersection form is 0)[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-6 SCConnectedSumMinus[0m
  
  [2X> SCConnectedSumMinus( [0X[3Xcomplex1, complex2[0X[2X ) ________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  The  function  removes  the first simplex of [3Xcomplex1[0m and [3Xcomplex2[0m and glues
  them  together  along the boundary. The boundary components of the complexes
  are  glued  in  without  twist.  Thus, [10XSCConnectedSumMinus[0m is different from
  [2XSCConnectedSum[0m  ([14X4.3-5[0m)  whenever  [3Xcomplex1[0m  and  [3Xcomplex2[0m  do  not allow an
  orientation reversing homeomorphism.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2");[0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> genus2:=SCConnectedSumMinus(torus,torus);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("CP^2");[0X
    [4X [ [ 17, "CP^2 (VT)" ], [ 88, "CP^2#CP^2" ], [ 89, "CP^2#-CP^2" ], [0X
    [4X   [ 186, "CP^2#(S^2xS^2)" ], [ 499, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0X
    [4X gap> cp2:=SCLib.Load(17);;[0X
    [4X # CP^2 # CP^2 (signature of intersection form is 2)  [0X
    [4X gap> c1:=SCConnectedSum(cp2,cp2);;[0X
    [4X # CP^2 # - CP^2 (signature of intersection form is 0)[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-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 [3Xcomplex[0m, and a sum equal to [3Xmodulus[0m. In some
  sense this is the inverse operation of [2XSCDifferenceCycleExpand[0m ([14X4.3-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 gap>  [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-8 SCDifferenceCycleExpand[0m
  
  [2X> SCDifferenceCycleExpand( [0X[3Xdiffcycle[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  a simplicial complex 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 GAP 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 gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.3-9 SCStronglyConnectedComponents[0m
  
  [2X> SCStronglyConnectedComponents( [0X[3Xcomplex[0X[2X ) _________________________[0Xfunction
  [6XReturns:[0X  a list of simplicial complexes 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, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #1 of unnamed complex n20"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #2 of unnamed complex n20"[0X
    [4X      Dim=5[0X
    [4X     [0X
    [4X     /SimplicialComplex], [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="Strongly connected component #3 of unnamed complex n20"[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 gap>  [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X4.4 Simplicial complexes from transitive permutation groups[0X
  
  Beginning  from  Version  1.3.0, [5Xsimpcomp[0m can generate triangulations from a
  prescribed  transitive  group  action on its set of vertices. Note that this
  group  is a subgroup of the full automorphism group, but not necessarily the
  full  automorphism  group  of  the  triangulation  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.
  
  [1X4.4-1 SCsFromGroupExt[0m
  
  [2X> SCsFromGroupExt( [0X[3XG, n, d, objectType, cache, backtrack, removeDoubleEntries[0X[2X ) [0Xfunction
  [6XReturns:[0X  a list of simplicial complexes upon success, [9Xfail[0m otherwise.
  
  Computes  all  closed  combinatorial [3Xd[0m-pseudomanifolds as 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).  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 integer
  argument  [3Xbacktrack[0m  specifies  a backtrack strategy. A value of [10X-1[0m disables
  the  backtracking  (only complexes consisting of a single orbit -- so called
  single   results  --  are  computed).  A  value  of  [10X0[0m  enables  full  depth
  backtracking,  any other positive value restricts the backtrack depth to the
  specified  value,  allowing  a  ``shallow''  search.  The  boolean  argument
  [3XremoveDoubleEntries[0m   specifies   whether   the   results  are  checked  for
  combinatorial isomorphy, 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,0,true);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, IsConnected, Name, VertexLabels, Vertices\[0X
    [4X .[0X
    [4X     [0X
    [4X      Name="Complex 1 of PGL(2, 7) (single orbit)"[0X
    [4X      Dim=3[0X
    [4X      IsConnected=true[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: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Boundary, Chi, [0X
    [4X                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0X
    [4X                    Generators, H, HasBoundary, HasInterior, Homology, [0X
    [4X                    Interior, IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, IsPM, [0X
    [4X                    IsPure, MinimalNonFaces, Name, Neighborliness, [0X
    [4X                    Orientation, Reference, StronglyConnected, VertexLabels, [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="T^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X  AutomorphismGroupSize=42[0X
    [4X  AutomorphismGroupStructure="(C7 : C3) : C2"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  Chi=0[0X
    [4X  F=[ 7, 21, 14 ][0X
    [4X  G=[ 3, 6 ][0X
    [4X  H=[ 4, 10, -1 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 2, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=true[0X
    [4X  IsPM=true[0X
    [4X  IsPure=true[0X
    [4X  Neighborliness=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> list:=SCsFromGroupExt(PrimitiveGroup(8,5),8,3,0,0,0,true); [0X
    [4X [  ] [0X
    [4X # there are no 3-neighborly 3-manifolds with 8 vertices[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.4-2 SCsFromGroupByTransitivity[0m
  
  [2X> SCsFromGroupByTransitivity( [0X[3Xn, d, k, maniflag, computeAutGroup, removeDoubleEntries[0X[2X ) [0Xfunction
  [6XReturns:[0X  a list of simplicial complexes upon success, [9Xfail[0m otherwise.
  
  Computes  all  closed  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   seperatelz   by   manifolds,
  pseudomanifolds  and  not  yet  specified  complexes.  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 isomorphy, preventing
  isomorphic  entries.  Internally  calls  [2XSCsFromGroupExt[0m  ([14X4.4-1[0m)  for every
  group.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCInfoLevel(0);[0X
    [4X gap> list:=SCsFromGroupByTransitivity(8,3,1,true,true,true);[0X
    [4X [ [ [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                            AutomorphismGroupSize,AutomorphismGroupStructure,[0X
    [4X                            AutomorphismGroupTransitivity, Boundary,Chi,Dim,F, [0X
    [4X                            Faces, Facets, Generators, HasBoundary, Homology, [0X
    [4X                            IsConnected, IsManifold, IsPM, Name, [0X
    [4X                            StronglyConnected, VertexLabels, Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 1 of C(8)=8 (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=16[0X
    [4X          AutomorphismGroupStructure="D(8)"[0X
    [4X          AutomorphismGroupTransitivity=1[0X
    [4X          Chi=0[0X
    [4X          F=[ 8, 28, 40, 20 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPM=true[0X
    [4X         [0X
    [4X         /SimplicialComplex], [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                            AutomorphismGroupSize,AutomorphismGroupStructure,[0X
    [4X                            AutomorphismGroupTransitivity, Boundary,Chi,Dim,F, [0X
    [4X                            Faces, Facets, Generators, HasBoundary, Homology, [0X
    [4X                            IsConnected, IsManifold, IsPM, Name, [0X
    [4X                            StronglyConnected, VertexLabels, Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 3 of C(8)=8 (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=384[0X
    [4X          AutomorphismGroupStructure="[2^4]S(4)"[0X
    [4X          AutomorphismGroupTransitivity=1[0X
    [4X          Chi=0[0X
    [4X          F=[ 8, 24, 32, 16 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPM=true[0X
    [4X         [0X
    [4X         /SimplicialComplex] ], [ [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                            AutomorphismGroupSize,AutomorphismGroupStructure,[0X
    [4X                            AutomorphismGroupTransitivity, Boundary,Chi,Dim,F, [0X
    [4X                            Faces, Facets, Generators, HasBoundary, Homology, [0X
    [4X                            IsConnected, IsManifold, IsPM, Name, [0X
    [4X                            StronglyConnected, VertexLabels, Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 2 of C(8)=8 (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=336[0X
    [4X          AutomorphismGroupStructure="PSL(3,2) : C2"[0X
    [4X          AutomorphismGroupTransitivity=3[0X
    [4X          Chi=8[0X
    [4X          F=[ 8, 28, 56, 28 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 8, [ ] ], [ 1, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPM=true[0X
    [4X         [0X
    [4X         /SimplicialComplex], [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                            AutomorphismGroupSize,AutomorphismGroupStructure,[0X
    [4X                            AutomorphismGroupTransitivity, Boundary,Chi,Dim,F, [0X
    [4X                            Faces, Facets, Generators, HasBoundary, Homology, [0X
    [4X                            IsConnected, IsManifold, IsPM, Name, [0X
    [4X                            StronglyConnected, VertexLabels, Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 1 of 4[x]2 (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=32[0X
    [4X          AutomorphismGroupStructure="E(8):4=[1/4.eD(4)^2]2"[0X
    [4X          AutomorphismGroupTransitivity=1[0X
    [4X          Chi=4[0X
    [4X          F=[ 8, 28, 48, 24 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 3, [ 2 ] ], [ 0, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPM=true[0X
    [4X         [0X
    [4X         /SimplicialComplex], [SimplicialComplex[0X
    [4X         [0X
    [4X          Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                            AutomorphismGroupSize,AutomorphismGroupStructure,[0X
    [4X                            AutomorphismGroupTransitivity, Boundary,Chi,Dim,F, [0X
    [4X                            Faces, Facets, Generators, HasBoundary, Homology, [0X
    [4X                            IsConnected, IsManifold, IsPM, Name, [0X
    [4X                            StronglyConnected, VertexLabels, Vertices.[0X
    [4X         [0X
    [4X          Name="Complex 2 of 4[x]2 (multiple orbits)"[0X
    [4X          Dim=3[0X
    [4X          AutomorphismGroupSize=192[0X
    [4X          AutomorphismGroupStructure="E(8):S_4=[E(4)^2:S_3]2=E(4)^2:D_12"[0X
    [4X          AutomorphismGroupTransitivity=1[0X
    [4X          Chi=4[0X
    [4X          F=[ 8, 28, 48, 24 ][0X
    [4X          HasBoundary=false[0X
    [4X          Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 3, [ 2 ] ], [ 0, [ ] ] ][0X
    [4X          IsConnected=true[0X
    [4X          IsPM=true[0X
    [4X         [0X
    [4X         /SimplicialComplex] ], [  ] ][0X
    [4X gap> c:=SCBdCyclicPolytope(4,8);;[0X
    [4X gap> SCIsIsomorphic(list[1][1],c);[0X
    [4X true[0X
    [4X gap> c:=SCBdCrossPolytope(4);;   [0X
    [4X gap> SCIsIsomorphic(list[1][2],c);             [0X
    [4X true[0X
    [4X gap>  [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X4.5 Vertex labelings and label operations[0X
  
  Functions  operating  on  the  labels  of  a complex such as the name or the
  vertex labeling.
  
  Internally,  [5Xsimpcomp[0m  uses  the  standard  labeling  [1,  ...  ,  n]. It is
  recommended  to  use  simple  vertex  labels  like  integers  end,  whenever
  possible, the standard labeling, see also [2XSCRelabelStandard[0m ([14X4.5-5[0m).
  
  [1X4.5-1 SCLabelMax[0m
  
  [2X> SCLabelMax( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  maximal vertex label of [3Xcomplex[0m upon success, [9Xfail[0m otherwise.
  
  The  maximum  over  all  vertex  labels  is  determined  by the gap function
  [10XMaximumList[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCRelabel(c,[10,100,100000,3500]);;[0X
    [4X gap> SCLabelMax(c);[0X
    [4X 100000[0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCRelabel(c,["a","bbb",5,[1,1]]);[0X
    [4X true[0X
    [4X gap> SCLabelMax(c);[0X
    [4X "bbb"[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-2 SCLabelMin[0m
  
  [2X> SCLabelMin( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  minimal vertex label of [3Xcomplex[0m upon success, [9Xfail[0m otherwise.
  
  The  minimum  over  all  vertex  labels  is  determined  by the gap function
  [10XMinimumList[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCRelabel(c,[10,100,100000,3500]);;[0X
    [4X gap> SCLabelMin(c);[0X
    [4X 10[0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCRelabel(c,["a","bbb",5,[1,1]]);[0X
    [4X true[0X
    [4X gap> SCLabelMin(c);[0X
    [4X 5[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-3 SCLabels[0m
  
  [2X> SCLabels( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  a list of vertex labels upon success, [9Xfail[0m otherwise.
  
  Returns the vertex labels of [3Xcomplex[0m as a list.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(Combinations(["a","b","c","d"],3));;[0X
    [4X gap> SCLabels(c);[0X
    [4X [ "a", "b", "c", "d" ][0X
    [4X gap> c.Labels;[0X
    [4X [ "a", "b", "c", "d" ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-4 SCRelabel[0m
  
  [2X> SCRelabel( [0X[3Xcomplex, maptable[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  [3Xmaptable[0m has to be a list of length f_0. The function maps the i-th entry of
  [3Xmaptable[0m  to the i-th entry of the current vertex labels. If [3Xcomplex[0m has the
  standard vertex labeling [1, ... , n] i is mapped to [3Xmaptable[i][0m.
  
  Internally the property ``VertexLabels'' of [3Xcomplex[0m is replaced by [3Xmaptable.[0m
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByAttribute("F[1]=12"); [0X
    [4X [ [ 56, "S^2 (VT)" ], [ 57, "T^2 (VT)" ], [ 58, "T^2 (VT)" ], [0X
    [4X   [ 59, "T^2 (VT)" ], [ 60, "T^2 (VT)" ], [ 61, "(T^2)#2 (VT)" ], [0X
    [4X   [ 62, "(P^2)#4 (VT)" ], [ 63, "(T^2)#2 (VT)" ], [ 64, "(T^2)#2 (VT)" ], [0X
    [4X gap> c:=SCLib.Load(56);;[0X
    [4X gap> SCPropertyByName(c,"VertexLabels");[0X
    [4X [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ][0X
    [4X gap> SCRelabel(c,["a","b","c","d","e","f","g","h","i","j","k","l"]);[0X
    [4X true[0X
    [4X gap> SCLabels(c);[0X
    [4X [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l" ][0X
    [4X gap>  [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-5 SCRelabelStandard[0m
  
  [2X> SCRelabelStandard( [0X[3Xcomplex[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success upon success, [9Xfail[0m otherwise.
  
  Maps vertex labels v_1 , ... , v_n of [3Xcomplex[0m to [1 , ... , n].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByAttribute("F[1]=12"); [0X
    [4X [ [ 56, "S^2 (VT)" ], [ 57, "T^2 (VT)" ], [ 58, "T^2 (VT)" ], [0X
    [4X   [ 59, "T^2 (VT)" ], [ 60, "T^2 (VT)" ], [ 61, "(T^2)#2 (VT)" ], [0X
    [4X   [ 62, "(P^2)#4 (VT)" ], [ 63, "(T^2)#2 (VT)" ], [ 64, "(T^2)#2 (VT)" ], [0X
    [4X gap> c:=SCLib.Load(56);;[0X
    [4X gap> SCRelabel(c,[4..15]);[0X
    [4X true[0X
    [4X gap> SCVertices(c);[0X
    [4X [ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ][0X
    [4X gap> SCRelabelStandard(c);[0X
    [4X true[0X
    [4X gap> SCLabels(c);[0X
    [4X [ 1 .. 12 ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-6 SCRelabelTransposition[0m
  
  [2X> SCRelabelTransposition( [0X[3Xcomplex, pair[0X[2X ) __________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Permutes  vertex  labels of a single pair of vertices. [3Xpair[0m has to be a list
  of length 2 and a sublist of the property ``VertexLabels''.
  
  The   function  is  equivalent  to  [2XSCRelabel[0m  ([14X4.5-4[0m)  with  [3Xmaptable[0m  =  [
  VertexLabels[1]  ,  ...  ,  VertexLabels[i] , ... , VertexLabels[j] , dots ,
  VertexLabels[n]]  if  [3Xpair[0m = [ VertexLabels[j] , VertexLabels[i]], j <= i, j
  <> i.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCVertices(c);[0X
    [4X [ 1, 2, 3, 4 ][0X
    [4X gap> SCRelabelTransposition(c,[1,2]);;[0X
    [4X gap> SCLabels(c);[0X
    [4X [ 2, 1, 3, 4 ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-7 SCRename[0m
  
  [2X> SCRename( [0X[3Xcomplex, name[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Renames a simplicial complex.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(5);;[0X
    [4X gap> SCName(c);[0X
    [4X "S^4_6"[0X
    [4X gap> SCRename(c,"mySphere");[0X
    [4X true[0X
    [4X gap> SCName(c);[0X
    [4X "mySphere"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-8 SCSortComplex[0m
  
  [2X> SCSortComplex( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex from sorted facet list upon success, [9Xfail[0m
            otherwise.
  
  Sorts facet list (with arbitrary vertex labels) and returns a new simplicial
  complex  object  from  sorted facets. In particular all known properties are
  lost by this operation.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3); [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupOrder, [0X
    [4X                    AutomorphismGroupStructure, AutomorphismGroupTransitivity,  [0X
    [4X                    Chi, Dim, F, Facets, Generators, HasBoundary, Homology, [0X
    [4X                    IsConnected, IsStronglyConnected, Name, TopologicalType, [0X
    [4X                    VertexLabels.[0X
    [4X [0X
    [4X  Name="S^2_4"[0X
    [4X  Dim=2[0X
    [4X  AutomorphismGroupStructure="S4"[0X
    [4X  AutomorphismGroupTransitivity=4[0X
    [4X  Chi=2[0X
    [4X  F=[ 4, 6, 4 ][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 gap> SCRelabel(c,[4,3,2,1]);;[0X
    [4X gap> SCFacets(c);[0X
    [4X [ [ 4, 3, 2 ], [ 4, 3, 1 ], [ 4, 2, 1 ], [ 3, 2, 1 ] ][0X
    [4X gap> d:=SCSortComplex(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCFacets(d);[0X
    [4X [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.5-9 SCUnlabelFace[0m
  
  [2X> SCUnlabelFace( [0X[3Xcomplex, face[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a list upon success, [9Xfail[0m otherwise.
  
  Computes the standard labeling of [3Xface[0m in [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCRelabel(c,["a","bbb",5,[1,1]]);;[0X
    [4X gap> SCUnlabelFace(c,["a","bbb",5]);[0X
    [4X [ 1, 2, 3 ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X4.6 Computing properties of simplicial complexes[0X
  
  The  following  functions  compute  some  basic  properties  of a simplicial
  complex.  In  particular, the facets of the complex are not altered by these
  functions.
  
  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.
  
  [1X4.6-1 SCAltshulerSteinberg[0m
  
  [2X> SCAltshulerSteinberg( [0X[3Xcomplex[0X[2X ) __________________________________[0Xfunction
  [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-determinant.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"); [0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> SCAltshulerSteinberg(torus);[0X
    [4X 73728[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[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
  
  [1X4.6-2 SCAutomorphismGroup[0m
  
  [2X> SCAutomorphismGroup( [0X[3Xcomplex[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a group upon success, [9Xfail[0m otherwise
  
  Computes  the  automorphism  group  of  a  strongly connected pseudomanifold
  [3Xcomplex[0m.  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 ([14X4.6-3[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3"); [0X
    [4X [ [ 584, "K3 surface" ] ][0X
    [4X gap> k3surf:=SCLib.Load(584);;[0X
    [4X gap> SCAutomorphismGroup(k3surf);[0X
    [4X ((C2 x C2 x C2 x C2) : C5) : C3[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-3 SCAutomorphismGroupInternal[0m
  
  [2X> SCAutomorphismGroupInternal( [0X[3Xcomplex[0X[2X ) ___________________________[0Xfunction
  [6XReturns:[0X  permutation  group  in  structure  description  upon success, [9Xfail[0m
            otherwise.
  
  Computes  the  group  of  all  automorphisms  on  the  set  of vertices of a
  simplicial  complex  that  do not change the complex as a whole. Necessarily
  the  group  is  a  subgroup  of S_n where n is the number of vertices of the
  simplicial complex.
  
  The  group  is  given in structure description, provided by the GAP function
  [10XStructureDescription()[0m.  Note,  that  this 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 S6[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(2);;[0X
    [4X gap> g:=SCAutomorphismGroupInternal(c);[0X
    [4X S3[0X
    [4X gap> List(g);[0X
    [4X [(), (1,3), (1,2,3), (2,3), (1,3,2), (1,2)][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-4 SCBoundary[0m
  
  [2X> SCBoundary( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Computes  the  boundary  of  a combinatorial pseudomanifold. The boundary is
  returned as a simplicial complex and stored as a property of [3Xcomplex[0m.
  
  If the complex is not a pseudomanifold 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, Facets, Name, VertexLabels.[0X
    [4X[0X
    [4X Name="unnamed complex n"[0X
    [4X Dim=3[0X
    [4X[0X
    [4X /SimplicialComplex][0X
    [4X gap> SCBoundary(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="Bd(unnamed complex 5)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c;  [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Boundary, Dim, Faces, Facets, HasBoundary, Name, [0X
    [4X                    VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex 5"[0X
    [4X  Dim=3[0X
    [4X  HasBoundary=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-5 SCDehnSommervilleCheck[0m
  
  [2X> SCDehnSommervilleCheck( [0X[3Xc[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks if the simplicial complex [3Xc[0m fulfills the Dehn Sommerville equations.
  
  [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
  
  [1X4.6-6 SCDehnSommervilleMatrix[0m
  
  [2X> SCDehnSommervilleMatrix( [0X[3Xd[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  a [10X(d+1)[0mx[10XInt(d+1/2)[0m matrix upon success, [9Xfail[0m otherwise.
  
  Computes the coefficients of the Dehn Sommerville equations for dimension [10Xd[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-7 SCDim[0m
  
  [2X> SCDim( [0X[3Xcomplex[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  an integer value >= -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> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1], [2,4], [3,4], [5,6,7,8]]);;[0X
    [4X gap> SCDim(c);[0X
    [4X 3[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-8 SCDualGraph[0m
  
  [2X> SCDualGraph( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  A 1-dimensional simplicial complex 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, Facets, Name, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-9 SCEulerCharacteristic[0m
  
  [2X> SCEulerCharacteristic( [0X[3Xcomplex[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  integer upon success, [9Xfail[0m otherwise.
  
  Computes the Euler characteristic of a simplicial complex C
  
  $ \chi(C)=\sum \limits_{i=0}^{d} (-1)^{i} f_i $
  
  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 [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> s2:=SCBdSimplex(3);;[0X
    [4X gap> s2.EulerCharacteristic;[0X
    [4X 2[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-10 SCFVector[0m
  
  [2X> SCFVector( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xfunction
  [6XReturns:[0X  a list of 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 the
  complex.  A memory-saving implicit algorithm is used that avoids calculating
  the face lattice of the complex. Internally calls [2XSCNumFaces[0m ([14X4.6-46[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 gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-11 SCFaceLattice[0m
  
  [2X> SCFaceLattice( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [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"], [0X
    [4X 	   ["b", "c"], ["b", "d"], ["c", "d"] ],[0X
    [4X   [ ["a", "b", "c"], ["a", "b", "d"], [0X
    [4X     ["a", "c", "d"], ["b", "c", "d"] ] ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-12 SCFaceLatticeEx[0m
  
  [2X> SCFaceLatticeEx( [0X[3Xcomplex[0X[2X ) _______________________________________[0Xfunction
  [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 gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-13 SCFaces[0m
  
  [2X> SCFaces( [0X[3Xcomplex, dim[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  This is a synonym of the function [2XSCSkel[0m ([14X4.6-48[0m).
  
  [1X4.6-14 SCFacesEx[0m
  
  [2X> SCFacesEx( [0X[3Xcomplex, dim[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  This is a synonym of the function [2XSCSkelEx[0m ([14X4.6-49[0m).
  
  [1X4.6-15 SCFacets[0m
  
  [2X> SCFacets( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xfunction
  [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 ], [ 3, 4 ], [ 2, 4 ] ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-16 SCFacetsEx[0m
  
  [2X> SCFacetsEx( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [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 ], [ 2, 3 ], [ 1, 3 ] ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-17 SCFpBettiNumbers[0m
  
  [2X> SCFpBettiNumbers( [0X[3Xcomplex, p[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a list of non-negative integers upon success, [9Xfail[0m otherwise.
  
  Computes  the F_p Betti numbers of a simplicial complex for any prime number
  [10Xp[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2");    [0X
    [4X [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(19);; [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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-18 SCFundamentalGroup[0m
  
  [2X> SCFundamentalGroup( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  an 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 # an RP^2[0X
    [4X gap> c:=SC([[ 1, 2, 3 ], [ 1, 2, 6 ], [ 1, 3, 5 ], [ 1, 4, 5 ], [ 1, 4, 6 ],[0X
    [4X           [ 2, 3, 4 ], [ 2, 4, 5 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ]]);;[0X
    [4X gap> g:=SCFundamentalGroup(c);[0X
    [4X <fp group on the generators [ [2,3], [2,4], [2,5], [2,6], [3,4], [3,5], [0X
    [4X   [3,6], [4,5], [4,6], [5,6] ]>[0X
    [4X gap> Order(g);[0X
    [4X 2[0X
    [4X gap> Elements(g);[0X
    [4X [ <identity ...>, [2,4] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-19 SCGVector[0m
  
  [2X> SCGVector( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xfunction
  [6XReturns:[0X  a list of non-negative 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 ([14X4.6-22[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)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;[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 ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-20 SCGenerators[0m
  
  [2X> SCGenerators( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xfunction
  [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 group of
  automorphisms of [3Xcomplex[0m.
  The function will return the simplices together with the length of the their
  orbits.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"); [0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> SCGenerators(torus); [0X
    [4X [ [ [ 1, 2, 4 ], 14 ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");[0X
    [4X [ [ 584, "K3 surface" ] ][0X
    [4X gap> SCLib.Load(584);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Boundary, Chi, [0X
    [4X                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0X
    [4X                    Generators, H, HasBoundary, HasInterior, Homology, [0X
    [4X                    Interior, IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0X
    [4X                    MinimalNonFaces, Name, Neighborliness, Orientation, [0X
    [4X                    StronglyConnected, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="K3 surface"[0X
    [4X  Dim=4[0X
    [4X  AutomorphismGroupSize=240[0X
    [4X  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  Chi=24[0X
    [4X  F=[ 16, 120, 560, 720, 288 ][0X
    [4X  G=[ 10, 55 ][0X
    [4X  H=[ 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  IsPM=true[0X
    [4X  IsPure=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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-21 SCGeneratorsEx[0m
  
  [2X> SCGeneratorsEx( [0X[3Xcomplex[0X[2X ) ________________________________________[0Xfunction
  [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 group of
  automorphisms of [3Xcomplex[0m.
  The function will return the simplices together with the length of the their
  orbits.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"); [0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> SCGeneratorsEx(torus); [0X
    [4X [ [ [ 1, 2, 4 ], 14 ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K3");[0X
    [4X [ [ 584, "K3 surface" ] ][0X
    [4X gap> SCLib.Load(584);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Boundary, Chi, [0X
    [4X                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0X
    [4X                    Generators, H, HasBoundary, HasInterior, Homology, [0X
    [4X                    Interior, IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0X
    [4X                    MinimalNonFaces, Name, Neighborliness, Orientation, [0X
    [4X                    StronglyConnected, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="K3 surface"[0X
    [4X  Dim=4[0X
    [4X  AutomorphismGroupSize=240[0X
    [4X  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  Chi=24[0X
    [4X  F=[ 16, 120, 560, 720, 288 ][0X
    [4X  G=[ 10, 55 ][0X
    [4X  H=[ 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  IsPM=true[0X
    [4X  IsPure=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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-22 SCHVector[0m
  
  [2X> SCHVector( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xfunction
  [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
  follows:
  
  $ 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+1) where f_-1 := 1. For all simplicial complexes we have
  h_0  =  1,  thus  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)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;[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> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-23 SCHasBoundary[0m
  
  [2X> SCHasBoundary( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks,  if  a  combinatorial  pseudomanifold [3Xcomplex[0m has a boundary. If the
  complex is closed [9Xfalse[0m is returned, if the complex is not a pseudomanifold,
  [9Xfail[0m is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2"); [0X
    [4X [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(19);;[0X
    [4X gap> SCHasBoundary(kleinBottle);[0X
    [4X false[0X
    [4X gap> [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
  
  [1X4.6-24 SCHasInterior[0m
  
  [2X> SCHasInterior( [0X[3X[0X[2X ) ________________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Returns  [9Xtrue[0m  if there exist at least one (d-1)-face of [3Xcomplex[0m that is not
  in its 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> 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
  
  [1X4.6-25 SCHomology[0m
  
  [2X> SCHomology( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  a list of pairs of the form [10X[ integer, list ][0m.
  
  Computes  the  integral  simplicial homology groups for a simplicial complex
  (internally  calls  [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  ([14X5.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 incresing
  size.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("K^2");[0X
    [4X [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0X
    [4X gap> kleinBottle:=SCLib.Load(19);;[0X
    [4X gap> kleinBottle.Homology;          [0X
    [4X [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("L_");[0X
    [4X [ [ 139, "L_3_1" ], [ 282, "L_4_1" ], [ 300, "L_5_2" ], [0X
    [4X   [ 411, "(S^2xS^1)#L_3_1" ], [ 412, "(S^2~S^1)#L_3_1" ], [ 444, "L_5_1" ], [0X
    [4X   [ 445, "(S^2xS^1)#2#L_3_1" ], [ 446, "(S^2~S^1)#2#L_3_1" ], ...[0X
    [4X gap> c:=SCConnectedSum(SCConnectedProduct(SCLib.Load(446),3),[0X
    [4X  SCConnectedProduct(SCLib.Load(445),2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="(S^2~S^1)#2#L_3_1#+-(S^2~S^1)#2#L_3_1#+-(S^2~S^1)#2#L_3_1#+-(S^2xS^1)#[0X
    [4X   2#L_3_1#+-(S^2xS^1)#2#L_3_1"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCHomology(c);[0X
    [4X [ [ 0, [  ] ], [ 10, [ 3, 3, 3, 3, 3 ] ], [ 9, [ 2 ] ], [ 0, [  ] ] ][0X
    [4X gap> SCFpBettiNumbers(c,2);[0X
    [4X [ 1, 10, 10, 1 ][0X
    [4X gap> SCFpBettiNumbers(c,3);[0X
    [4X [ 1, 15, 14, 0 ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-26 SCIncidences[0m
  
  [2X> SCIncidences( [0X[3Xcomplex, dim[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Returns  an  array  of  all [3Xdim[0m-faces of [3Xcomplex[0m. The array is sorted by the
  incidence of the face in the ([3Xdim[0m+1)-skeleton of the complex, i. e. the i-th
  entry  of  the  array contains all [3Xdim[0m-faces with incidence 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], [0X
    [4X     [2, 4], [2, 6], [3, 5], [3, 6] ], [0X
    [4X   [ [1, 6], [3, 4], [4, 5], [4, 6], [5, 6] ],[0X
    [4X   [ [2, 3] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-27 SCIncidencesEx[0m
  
  [2X> SCIncidencesEx( [0X[3Xcomplex, dim[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Returns  an  array  of  all [3Xdim[0m-faces of [3Xcomplex[0m. The array is sorted by the
  incidence of the face in the ([3Xdim[0m+1)-skeleton of the complex, i. e. the i-th
  entry  of  the  array contains all [3Xdim[0m-faces with incidence 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], [0X
    [4X     [2, 4], [2, 6], [3, 5], [3, 6] ], [0X
    [4X   [ [1, 6], [3, 4], [4, 5], [4, 6], [5, 6] ],[0X
    [4X   [ [2, 3] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-28 SCInterior[0m
  
  [2X> SCInterior( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Computes all (d-1)-faces of a combinatorial d-pseudomanifold C that occur in
  exactly  two  facets, i. e. 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
  
  [1X4.6-29 SCIsCentrallySymmetric[0m
  
  [2X> SCIsCentrallySymmetric( [0X[3Xcomplex[0X[2X ) ________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks,  if  a  simplicial  complex  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
  
  [1X4.6-30 SCIsConnected[0m
  
  [2X> SCIsConnected( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, if a simplicial complex 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
  
  [1X4.6-31 SCIsEmpty[0m
  
  [2X> SCIsEmpty( [0X[3Xcomplex[0X[2X ) _____________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks if [3Xcomplex[0m is empty
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1]]);;[0X
    [4X gap> SCIsEmpty(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-32 SCIsEulerianManifold[0m
  
  [2X> SCIsEulerianManifold( [0X[3Xcomplex[0X[2X ) __________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks  whether a given simplicial complex is a Eulerian manifold or not, i.
  e.  checks,  if  all vertex links of a combinatorial pseudomanifold have the
  Euler  characteristic  of a sphere. In particular the function returns [9Xfalse[0m
  in case of a bounded manifold.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X gap> SCIsEulerianManifold(c);[0X
    [4X true[0X
    [4X gap> moebius:=SCLib.Load(6); # a moebius strip[0X
    [4X gap> SCIsEulerianManifold(moebius);[0X
    [4X false[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-33 SCIsFlag[0m
  
  [2X> SCIsFlag( [0X[3Xcomplex, k[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks,  if  [3Xcomplex[0m  is  flag.  A simplicial complex is a flag complex (see
  [Fro08])  if  all of the edges of a potential face of the complex are in the
  complex, or equivalently if all of its minimal non-faces are edges.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");   [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;[0X
    [4X gap> SCIsFlag(rp2_6);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-34 SCIsHomologySphere[0m
  
  [2X> SCIsHomologySphere( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, whether the [3Xcomplex[0m given is a homology 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
  
  [1X4.6-35 SCIsInKd[0m
  
  [2X> SCIsInKd( [0X[3Xcomplex, k[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  an integer upon success, [9Xfail[0m otherwise.
  
  Checks,  whether  the complex is in the class K^k(d) of simplicial complexes
  that  only  have  k-stacked  spheres  as  vertex  links. Returns the minimal
  determined k for which the membership was tested or 0 if the membership test
  could   not   be   decided   for   the   given   complex.  Internally  calls
  [2XSCIsKStackedSphere[0m  ([14X6.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> SCLib.SearchByName("S^2~S^1");   [0X
    [4X [ [ 14, "S^2~S^1 (VT)" ], [ 29, "S^2~S^1 (VT)" ], [ 34, "S^2~S^1 (VT)" ], [0X
    [4X   [ 42, "S^2~S^1 (VT)" ], [ 48, "S^2~S^1 (VT)" ], [ 49, "S^2~S^1 (VT)" ], [0X
    [4X   [ 84, "S^2~S^1 (VT)" ], [ 87, "S^2~S^1 (VT)" ], [ 90, "(S^2~S^1)#2" ], ...[0X
    [4X gap> c:=SCLib.Load(14);;[0X
    [4X gap> c.AutomorphismGroup;[0X
    [4X D18[0X
    [4X gap> SCIsInKd(c,1);[0X
    [4X #I  SCIsInKd: checking link 1/9[0X
    [4X #I  SCIsKStackedSphere: try 1/50[0X
    [4X round 0: [ 7, 15, 10 ][0X
    [4X round 1: [ 6, 12, 8 ][0X
    [4X round 2: [ 5, 9, 6 ][0X
    [4X round 3: [ 4, 6, 4 ][0X
    [4X Computed locally minimal complex after 4 rounds.[0X
    [4X #I  SCIsInKd: complex has transitive automorphism group, all links are [0X
    [4X 1-stacked.[0X
    [4X 1[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-36 SCIsKNeighborly[0m
  
  [2X> SCIsKNeighborly( [0X[3Xcomplex, k[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks,  if  a  simplicial complex is k-neighborly, i. e. if it contains all
  possible  f_0  choose  k  (k-1)-simplices,  where  f_0 denotes the number of
  simplices.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");   [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;[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
  
  [1X4.6-37 SCIsOrientable[0m
  
  [2X> SCIsOrientable( [0X[3Xcomplex[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, if a combinatorial pseudomanifold is orientable.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCIsOrientable(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-38 SCIsPseudoManifold[0m
  
  [2X> SCIsPseudoManifold( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, if every (d-1)-face of [3Xcomplex[0m is contained in exactly 2 facets.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X # Two 2-spheres glued together at [1][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 # Two circles glued together a 1[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
  
  [1X4.6-39 SCIsPure[0m
  
  [2X> SCIsPure( [0X[3Xcomplex[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  a  pair  of  the  form  [10X[  integer,  boolean  ][0m upon success, [9Xfail[0m
            otherwise.
  
  Checks, if a simplicial complex 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> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2], [1,4], [2,4]]);;[0X
    [4X gap> SCIsPure(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-40 SCIsShellable[0m
  
  [2X> SCIsShellable( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, if a bounded simplical complex is shellable. 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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-41 SCIsStronglyConnected[0m
  
  [2X> SCIsStronglyConnected( [0X[3Xcomplex[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks, if a simplicial complex is strongly connected, i. e. if for any pair
  of  facets (hatDelta,tildeDelta) there exists a sequence of facets ( Delta_1
  ,  ...  ,  Delta_n  )  with  Delta_1 = hatDelta and Delta_n = tildeDelta and
  dim(Delta_i , Delta_i+1 ) = d - 1 for all 1 <= i <= n - 1.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X # Two 2-spheres, glued along [1][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> SCIsConnected(c);        [0X
    [4X true[0X
    [4X gap> SCIsStronglyConnected(c);                                                [0X
    [4X false[0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-42 SCMinimalNonFaces[0m
  
  [2X> SCMinimalNonFaces( [0X[3Xcomplex[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes  all missing proper faces of [3Xcomplex[0m by calling [2XSCMinimalNonFacesEx[0m
  ([14X4.6-43[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-43 SCMinimalNonFacesEx[0m
  
  [2X> SCMinimalNonFacesEx( [0X[3Xcomplex[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a list of face lists upon success, [9Xfail[0m otherwise.
  
  Computes  all missing proper faces of [3Xcomplex[0m, i.e. the missing (i+1)-tuples
  in  the  i-dim.  skeleton  of  a  complex  in  minimal  dimension. 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. Note
  that  the  simplices  returned are in standard labeling 1,dots,n, where n is
  the number of vertices of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"); [0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0X
    [4X gap> torus:=SCLib.Load(5);;[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 [ [  ], [  ], [0X
    [4X   [ [ 1 .. 3 ], [ 1, 2, 4 ], [ 1, 2, 5 ], [ 1, 2, 6 ], [ 1, 2, 7 ], [0X
    [4X     [ 1, 2, 8 ], [ 1, 3, 4 ], [ 1, 5, 6 ], [ 1, 7, 8 ], [ 2, 3, 4 ], [0X
    [4X     [ 2, 5, 6 ], [ 2, 7, 8 ], [ 3, 4, 5 ], [ 3, 4, 6 ], [ 3, 4, 7 ], [0X
    [4X     [ 3, 4, 8 ], [ 3, 5, 6 ], [ 3, 7, 8 ], [ 4, 5, 6 ], [ 4, 7, 8 ], [0X
    [4X     [ 5, 6, 7 ], [ 5, 6, 8 ], [ 5, 7, 8 ], [ 6, 7, 8 ] ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-44 SCName[0m
  
  [2X> SCName( [0X[3Xcomplex[0X[2X ) ________________________________________________[0Xfunction
  [6XReturns:[0X  a string upon success, [9Xfail[0m otherwise.
  
  Returns the name of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(5);;[0X
    [4X gap> SCName(c);[0X
    [4X "S^4_6"[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[2,3],[3,1]]);;[0X
    [4X gap> SCName(c);[0X
    [4X "unnamed complex n"[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-45 SCNeighborliness[0m
  
  [2X> SCNeighborliness( [0X[3Xcomplex[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  a positive integer upon success, [9Xfail[0m otherwise.
  
  Returns  k if a simplicial complex is k-neighborly but not (k+1)-neighborly.
  See also [2XSCIsKNeighborly[0m ([14X4.6-36[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)");[0X
    [4X [ [ 10, "S^5 (VT)" ], [ 17, "CP^2 (VT)" ], [ 18, "S^5 (VT)" ], [0X
    [4X   [ 38, "S^5 (VT)" ], [ 39, "S^6 (VT)" ], [ 40, "S^7 (VT)" ], [0X
    [4X   [ 53, "S^5 (VT)" ], [ 54, "S^5 (VT)" ], [ 55, "S^7 (VT)" ], ... [0X
    [4X gap> cp2:=SCLib.Load(17);;[0X
    [4X gap> SCNeighborliness(cp2);[0X
    [4X 3[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-46 SCNumFaces[0m
  
  [2X> SCNumFaces( [0X[3Xcomplex[, i][0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  an integer or a list of 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 the
  complex.  Note  that  a value of [3Xi[0m=k calculates the number of (k-1)-faces of
  [3Xcomplex[0m.  A memory-saving implicit algorithm is used that avoids calculating
  the  face  lattice  of  the  complex. If the optional integer parameter [3Xi[0m is
  passed, only the [3Xi[0m-th position of the face vector of [3Xcomplex[0m is calculated.
  
  [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 4[0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-47 SCOrientation[0m
  
  [2X> SCOrientation( [0X[3Xcomplex[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  a  list  of  the  type  {  pm  1  }^f_d  /  [10X[ ][0m upon success, [9Xfail[0m
            otherwise.
  
  This  function  tries to compute an orientation of a pure simplicial complex
  that  fulfills  the  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
  
  [1X4.6-48 SCSkel[0m
  
  [2X> SCSkel( [0X[3Xcomplex, dim[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  Computes  the  [3Xdim[0m-skeleton  of  a simplcial complex, i. e. all [3Xdim[0m-faces of
  [3Xcomplex[0m,  if  [3Xdim[0m  is  an  integer  value.  If  [3Xdim[0m is a list, a list of all
  [3Xdim[0m[10X[i][0m-faces  of  [3Xcomplex[0m for each entry [3Xdim[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)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;      [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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-49 SCSkelEx[0m
  
  [2X> SCSkelEx( [0X[3Xcomplex, dim[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  a face list upon success, [9Xfail[0m otherwise.
  
  Computes  the  [3Xdim[0m-skeleton  of  a simplcial complex, i. e. all [3Xdim[0m-faces of
  [3Xcomplex[0m,  if  [3Xdim[0m  is  an  integer  value.  If  [3Xdim[0m is a list, a list of all
  [3Xdim[0m[10X[i][0m-faces  of  [3Xcomplex[0m for each entry [3Xdim[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)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2_6:=SCLib.Load(3);;      [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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-50 SCSpanningTree[0m
  
  [2X> SCSpanningTree( [0X[3Xcomplex[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  a spanning tree of [3Xcomplex[0m upon success, [9Xfail[0m otherwise.
  
  Computes  a  spanning  tree  of [3Xcomplex[0m which must be a connected simplicial
  complex   with   a   greedy   algorithm   and   returns  it  in  form  of  a
  [10XSCSimplicialComplex[0m object.
  
  [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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="spanning tree of unnamed complex n"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> s.Facets;[0X
    [4X [ [ "a", "b" ], [ "a", "c" ], [ "a", "d" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-51 SCVertices[0m
  
  [2X> SCVertices( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  a list of vertex labels upon success, [9Xfail[0m otherwise.
  
  Returns vertex labels.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> sphere:=SC([["x",45,[1,1]],["x",45,["b",3]],["x",[1,1],[0X
    [4X   ["b",3]],[45,[1,1],["b",3]]]);;[0X
    [4X gap> SCVerticesEx(sphere);[0X
    [4X [1, 2, 3, 4][0X
    [4X gap> SCVertices(sphere);[0X
    [4X [ 45, [ 1, 1 ], "x", [ "b", 3 ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.6-52 SCVerticesEx[0m
  
  [2X> SCVerticesEx( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  [ 1, ... , n ] upon success, [9Xfail[0m otherwise.
  
  Returns [1, ... , n ], where n is the number of vertices of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,4,5],[4,9,8],[12,13,14,15,16,17]]);;[0X
    [4X gap> SCVerticesEx(c);[0X
    [4X [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X4.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
  section  ''Generate  new  complexes  from  old''  earlier  in  this chapter.
  However, the data generated here is rather seen as an intrinsic attribute of
  the original complex and not as an independent complex.
  
  [1X4.7-1 SCAlexanderDual[0m
  
  [2X> SCAlexanderDual( [0X[3Xcomplex[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  The  Alexander dual of [3Xcomplex[0m is the simplicial complex whose faces are the
  complements of the nonfaces of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X # a square[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
  
  [1X4.7-2 SCCollapseGreedy[0m
  
  [2X> SCCollapseGreedy( [0X[3Xcomplex[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Employs  a  greedy  collapsing  algorithm  in order to collapse [3Xcomplex[0m. The
  source code of this function is taken from [ManifoldPage].
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2"); [0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X gap> torus:=SCLib.Load(5);;                             [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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="collapsed version of T^2 (VT) \ unnamed complex n"[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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="collapsed version of S^3_5 \ unnamed complex n"[0X
    [4X  Dim=0[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> coll.Facets;                     [0X
    [4X [ [ 5 ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-3 SCCone[0m
  
  [2X> SCCone( [0X[3X[0X[2X ) _______________________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Takes  a  new  vertex v and unites every facet with it. The function returns
  the new complex in the standard vertex labeling from 1 to (n+1). The apex of
  the cone is (n+1).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^3");[0X
    [4X [ [ 45, "RP^3" ], [ 103, "RP^3=L(2,1) (VT)" ], [ 246, "(S^2~S^1)#RP^3" ], [0X
    [4X   [ 247, "(S^2xS^1)#RP^3" ], [ 283, "(S^2~S^1)#2#RP^3" ], [0X
    [4X   [ 285, "(S^2xS^1)#2#RP^3" ], [ 409, "RP^3#RP^3" ], ...[0X
    [4X gap> rp3:=SCLib.Load(45);;[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 gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-4 SCDeletedJoin[0m
  
  [2X> SCDeletedJoin( [0X[3Xcomplex1, complex2[0X[2X ) ______________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Calculates  the simplicial deleted join of the simplicial complexes [3Xcomplex1[0m
  and  [3Xcomplex2[0m.  Internally  falls  back  to the [5Xhomology[0m package [DHSW04] if
  called with a facet list and does not interfere with the [5Xhomology[0m package.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> deljoin:=SCDeletedJoin(SCBdSimplex(3),SCBdSimplex(3));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-5 SCDifference[0m
  
  [2X> SCDifference( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex 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 ([14X3.3-10[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-6 SCHandleAddition[0m
  
  [2X> SCHandleAddition( [0X[3Xcomplex, f1, f2[0X[2X ) ______________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex  obtained by identifying the vertices of facet
            [3Xf1[0m with the ones of facet [3Xf2[0m in [3Xcomplex[0m. [9Xfail[0m upon an error.
  
  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. [BD08] 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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-7 SCIntersection[0m
  
  [2X> SCIntersection( [0X[3Xcomplex1, complex2[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex 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.
  
  [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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-8 SCIsIsomorphic[0m
  
  [2X> SCIsIsomorphic( [0X[3Xcomplex1, complex2[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  [9Xtrue[0m  is  returned, if [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
  
  [1X4.7-9 SCIsSubcomplex[0m
  
  [2X> SCIsSubcomplex( [0X[3Xsc1, sc2[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m if [3Xsc2[0m is a subcomplex of [3Xsc2[0m, [9Xfalse[0m otherwise.
  
  Returns  [9Xtrue[0m if [3Xsc2[0m is a subcomplex of [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.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByAttribute("F[1]=10");[0X
    [4X [ [ 19, "K^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 21, "S^3 (VT)" ], [0X
    [4X   [ 22, "(T^2)#2" ], [ 23, "S^3 (VT)" ], [ 24, "S^2xS^1 (VT)" ], [0X
    [4X   [ 25, "S^3 (VT)" ], [ 26, "S^4 (VT)" ], [ 27, "(T^2)#3" ], ...[0X
    [4X gap> t2:=SCLib.Load(20);;[0X
    [4X gap> c:=SCBdSimplex(9);;[0X
    [4X gap> t2.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,t2);[0X
    [4X true[0X
    [4X gap> SCIsSubcomplex(t2,c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-10 SCIsomorphism[0m
  
  [2X> SCIsomorphism( [0X[3Xcomplex1, complex2[0X[2X ) ______________________________[0Xfunction
  [6XReturns:[0X  a list of pairs of vertex labels upon success, [9Xfail[0m otherwise.
  
  Returns  an  isomorphism of [3Xcomplex1[0m to [3Xcomplex2[0m in the original labeling if
  they  are  combinatorially  isomorphic,  [9Xfalse[0m  otherwise.  Internally calls
  [2XSCIsomorphismEx[0m ([14X4.7-11[0m)[10X(complex1,complex2);[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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-11 SCIsomorphismEx[0m
  
  [2X> SCIsomorphismEx( [0X[3Xcomplex1, complex2[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  a list of pairs of vertex labels upon success, [9Xfail[0m otherwise.
  
  Returns  an  isomorphism of [3Xcomplex1[0m to [3Xcomplex2[0m in the standard labeling if
  they  are  combinatorially  isomorphic,  [9Xfalse[0m  otherwise.  If  f-vector and
  Altshuler-Steinberg   determinant   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 gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-12 SCJoin[0m
  
  [2X> SCJoin( [0X[3Xcomplex1, complex2[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Calculates  the  simplicial  join  of  the simplicial complexes [3Xcomplex1[0m and
  [3Xcomplex2[0m.  Internally  falls  back to the homology package [DHSW04] and does
  not  interfere  with the homology package. 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, Facets, Name, VertexLabels.[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 gap> [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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n 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 gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-13 SCLink[0m
  
  [2X> SCLink( [0X[3Xcomplex, face[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Computes  the  link  of  [3Xface[0m  in [3Xcomplex[0m, i. e. all facets containing [3Xface[0m,
  reduced  by  [3Xface[0m. if [3Xcomplex[0m is pure, the resulting complex is of dimension
  dim([3Xcomplex[0m) - dim([3Xface[0m) -1.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");     [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2:=SCLib.Load(3);;[0X
    [4X gap> SCVertices(rp2);[0X
    [4X [1, 2, 3, 4, 5, 6][0X
    [4X gap> SCLink(rp2,[1]);[0X
    [4X [SimplicialComplex[0X
    [4X[0X
    [4X Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X[0X
    [4X Name="unnamed complex n"[0X
    [4X Dim=1[0X
    [4X[0X
    [4X /SimplicialComplex][0X
    [4X gap> last.Facets;[0X
    [4X [[2, 3], [2, 6], [3, 5], [4, 5], [4, 6]][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-14 SCLinks[0m
  
  [2X> SCLinks( [0X[3Xcomplex, dim[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a list of new simplicial complexes upon success, [9Xfail[0m otherwise.
  
  Computes  the  link of all [3Xdim[0m-faces in [3Xcomplex[0m and stores them in a list of
  simplicial complexes. Internally calls [2XSCLink[0m ([14X4.7-13[0m) for every face.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(4);;[0X
    [4X # all vertex links -> 2 spheres[0X
    [4X gap> SCLinks(c,0);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="lk([ 1 ]) in S^3_5"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex], # ... etc [0X
    [4X][0X
    [4X # all edge links -> circles[0X
    [4X gap> SCLinks(c,1);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="lk([ 1, 2 ]) in S^3_5"[0X
    [4X      Dim=1[0X
    [4X     [0X
    [4X     /SimplicialComplex], # ... etc[0X
    [4X ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-15 SCNeighbors[0m
  
  [2X> SCNeighbors( [0X[3Xcomplex, face[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  a list of faces upon success, [9Xfail[0m otherwise.
  
  Computes  the  neighboring  faces  of a given [3Xface[0m in [3Xcomplex[0m. A neighboring
  face  is a face distinct from [3Xface[0m that must have the same dimension as [3Xface[0m
  and  intersect [3Xface[0m in a (d-1)-face, where [3Xface[0m is of dimensions d. The face
  is returned in original labeling.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCNeighbors(c,["a","d"]);[0X
    [4X [ [ "a", "b" ], [ "a", "c" ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-16 SCNeighborsEx[0m
  
  [2X> SCNeighborsEx( [0X[3Xcomplex, face[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  a list of faces upon success, [9Xfail[0m otherwise.
  
  Computes  the  neighboring  faces  of  a  given [3Xface[0m in standard labeling in
  [3Xcomplex[0m.  A neighboring face is a face distinct from [3Xface[0m that must have the
  same  dimension as [3Xface[0m and intersect [3Xface[0m in a (d-1)-face, where [3Xface[0m is of
  dimensions d.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Chi, Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[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
  
  [1X4.7-17 SCShelling[0m
  
  [2X> SCShelling( [0X[3Xcomplex[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  a  permuted  list  of  the  facets  of  [3Xcomplex[0m upon success, [9Xfail[0m
            otherwise.
  
  [3Xcomplex[0m must be a pure, strongly connected pseudomanifold with boundary.
  
  Internally  calls  [2XSCShellingExt[0m  ([14X4.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
  
  [1X4.7-18 SCShellingExt[0m
  
  [2X> SCShellingExt( [0X[3Xsc, all, checkvector[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  a  list  of  permuted  lists  of the facets of [3Xsc[0m of size 1 ([3Xall[0m =
            [9Xfalse[0m),  n  ([3Xall[0m  = [9Xtrue[0m) if [3Xcheckvector[0m is empty, [9Xtrue[0m / [9Xfalse[0m if
            [3Xcheckvector[0m is not empty, [9Xfail[0m upon an error.
  
  [3Xsc[0m must be a pure, bounded, strongly connected combinatorial pseudomanifold.
  
  A  shelling  is an ordering on the facet list of [3Xsc[0m starting with a facet at
  the boundary. The facets are removed with respect to that ordering. In every
  step  the  intersection  of the removed facet and the already removed facets
  has to be a shelling too.
  
  Every shelling is represented as a permuted version of the facet list of [3Xsc[0m.
  A  checkvector  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)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2:=SCLib.Load(3);;                        [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], [0X
    [4X     [2, 4, 5], [2, 3, 4], [2, 5, 6], [3, 4, 6], [3, 5, 6] 	] [0X
    [4X ][0X
    [4X # valid shelling[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 # invalid shelling[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
  
  [1X4.7-19 SCShellings[0m
  
  [2X> SCShellings( [0X[3Xcomplex[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  a list of permuted versions of the facet list of [3Xcomplex[0m.
  
  Internally  calls  [2XSCShellingExt[0m  ([14X4.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
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-20 SCSpan[0m
  
  [2X> SCSpan( [0X[3Xcomplex, subset[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Computes the reduced face lattice of all faces that are a subset of [3Xsubset[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, Facets, Name, VertexLabels.[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, Facets, Name, VertexLabels.[0X
    [4X[0X
    [4X Name="span([ 2, 3, 5 ]) in unnamed complex n"[0X
    [4X Dim=1[0X
    [4X[0X
    [4X /SimplicialComplex][0X
    [4X gap> SCFacets(span);[0X
    [4X [[2, 3], [5]][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-21 SCStar[0m
  
  [2X> SCStar( [0X[3Xcomplex, face[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise .
  
  Computes  the  star  of  [3Xface[0m in [3Xcomplex[0m, i. e. the set of facets of [3Xcomplex[0m
  that contain [3Xface[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("RP^2");     [0X
    [4X [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0X
    [4X gap> rp2:=SCLib.Load(3);;[0X
    [4X gap> SCVertices(rp2);[0X
    [4X [1, 2, 3, 4, 5, 6][0X
    [4X gap> SCStar(rp2,[1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, VertexLabels.[0X
    [4X[0X
    [4X  Name="star([ 1 ]) in RP^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> last.Facets;[0X
    [4X [[1, 2, 3], [1, 2, 6], [1, 3, 5], [1, 4, 5], [1, 4, 6]][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-22 SCStars[0m
  
  [2X> SCStars( [0X[3Xcomplex, dim[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a list of new simplicial complexes upon success, [9Xfail[0m otherwise.
  
  Computes for every [3Xdim[0m-face f the set of facets that contain f.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("T^2");[0X
    [4X [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0X
    [4X   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0X
    [4X   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0X
    [4X # the minimal 7-vertex torus[0X
    [4X gap> torus:=SCLib.Load(5);;[0X
    [4X # 7 2-discs as vertex stars[0X
    [4X gap> SCStars(torus,0);[0X
    [4X [ [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="star([ 1 ]) in T^2 (VT)"[0X
    [4X      Dim=2[0X
    [4X     [0X
    [4X     /SimplicialComplex], # ... etc[0X
    [4X ][0X
    [4X gap>[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-23 SCSuspension[0m
  
  [2X> SCSuspension( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex upon success, [9Xfail[0m otherwise.
  
  Calculates  the  simplicial  suspension  of  the simplicial complex [3Xcomplex[0m.
  Internally  falls  back  to  the  homology  package  [DHSW04]  and  does not
  interfere  with  the homology package. 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 [ [ 563, "Poincare_sphere" ] ][0X
    [4X gap> phs:=SCLib.Load(587);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Boundary, Chi, [0X
    [4X                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0X
    [4X                    Generators, H, HasBoundary, HasInterior, Homology, [0X
    [4X                    Interior, IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0X
    [4X                    MinimalNonFaces, Name, Neighborliness, Orientation, [0X
    [4X                    StronglyConnected, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="B4"[0X
    [4X  Dim=3[0X
    [4X  AutomorphismGroupSize=1[0X
    [4X  AutomorphismGroupStructure="1"[0X
    [4X  AutomorphismGroupTransitivity=0[0X
    [4X  Chi=0[0X
    [4X  F=[ 17, 117, 200, 100 ][0X
    [4X  G=[ 12, 59 ][0X
    [4X  H=[ 13, 72, 13, 1 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 1, [ 4 ] ], [ 0, [ 2 ] ], [ 0, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=false[0X
    [4X  IsPM=true[0X
    [4X  IsPure=true[0X
    [4X  Neighborliness=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> phs:=SCLib.Load(587);;[0X
    [4X gap> susp:=SCSuspension(phs);;[0X
    [4X gap> edwardsSphere:=SCSuspension(susp);;[0X
    [4X gap> SCIsManifold(edwardsSphere);[0X
    [4X ...[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X4.7-24 SCUnion[0m
  
  [2X> SCUnion( [0X[3Xcomplex1, complex2[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex 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 ([14X3.3-9[0m).
  
  [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, Facets, VertexLabels.[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
  
  [1X4.7-25 SCVertexIdentification[0m
  
  [2X> SCVertexIdentification( [0X[3Xcomplex, v1, v2[0X[2X ) ________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex  with  pinched  point [3Xv1[0m=[3Xv2[0m upon success, [9Xfail[0m
            otherwise.
  
  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
  
  [1X4.7-26 SCWedge[0m
  
  [2X> SCWedge( [0X[3Xcomplex1, complex2, ...[0X[2X ) _______________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex 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, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="S^1_3 wedge S^1_3"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> wedge.Facets;[0X
    [4X [ [ [ 1, 2 ], [ 1, 3 ] ], [ [ 2, 2 ], [ 2, 3 ] ], [ [ 1, 2 ], "a" ], [0X
    [4X   [ [ 1, 3 ], "a" ], [ [ 2, 2 ], "a" ], [ [ 2, 3 ], "a" ] ][0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
