  
  [1m[4m[31m4. Functions for simplicial complexes[0m
  
  
  [1m[4m[31m4.1 Creating an [22m[32mSCSimplicialComplex[1m[4m[31m object from a facet list[0m
  
  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.
  
  [1m[4m[31m4.1-1 SCFromFacets[0m
  
  [1m[34m> SCFromFacets( [0m[22m[34mfacets[0m[1m[34m ) ___________________________________________[0mfunction
  [1mReturns:[0m  simplicial  complex of type [22m[32mSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  Constructs  a simplicial complex object from the given facet list. The facet
  list  [22m[34mfacets[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  [1m[34mSCLabels[0m  ([1m4.4-3[0m) and the [22m[32mSCRelabel..[0m
  functions like [1m[34mSCRelabel[0m ([1m4.4-4[0m) or [1m[34mSCRelabelStandard[0m ([1m4.4-5[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromFacets([[1,2,5], [1,4,5], [1,4,6], [2,3,5], [0m
    [22m[35m                       [3,4,6], [3,5,6]]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> c:=SCFromFacets([["a","d","e"], ["a","b","e"], ["b","c","e"],[0m
    [22m[35m                       ["c","e","f"], ["c","d","f"], ["a", "d", "f"]]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.1-2 SC[0m
  
  [1m[34m> SC( [0m[22m[34mfacets[0m[1m[34m ) _____________________________________________________[0mfunction
  [1mReturns:[0m  simplicial  complex of type SCSimplicialComplex upon success, fail
            otherwise.
  
  A  shorter  function  to create a simplicial complex from a facet list, just
  calls [1m[34mSCFromFacets[0m ([1m4.1-1[0m)([22m[34mfacets[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC(Combinations([1..6],5));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=4[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.1-3 SCFromDifferenceCycles[0m
  
  [1m[34m> SCFromDifferenceCycles( [0m[22m[34mdiffcycles[0m[1m[34m ) _____________________________[0mfunction
  [1mReturns:[0m  a simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Creates  a  simplicial  complex  object  from  the list of difference cycles
  provided.  If [22m[34mdiffcycles[0m is of length 1 the computation is equivalent to the
  one in [1m[34mSCDifferenceCycleExpand[0m ([1m4.3-8[0m). Otherwise the induced modulus of all
  cycles  has  to  be equal and the union of all expanded difference cycles is
  returned.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromDifferenceCycles([[1,1,6],[2,3,3]]);;[0m
    [22m[35m gap> c.F;[0m
    [22m[35m [ 8, 24, 16 ][0m
    [22m[35m gap> c.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 2, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> c.Chi;[0m
    [22m[35m 0[0m
    [22m[35m gap> c.HasBoundary;[0m
    [22m[35m false[0m
    [22m[35m gap> SCIsPseudoManifold(c);[0m
    [22m[35m true[0m
    [22m[35m gap> SCIsManifold(c);[0m
    [22m[35m #I  SCIsManifold: link is sphere.[0m
    [22m[35m #I  SCIsManifold: transitive automorphism group, checking only one link.[0m
    [22m[35m true[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.1-4 SCFromGenerators[0m
  
  [1m[34m> SCFromGenerators( [0m[22m[34mgroup, generators[0m[1m[34m ) ____________________________[0mfunction
  [1mReturns:[0m  simplicial  complex of type [22m[32mSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  Constructs  a  simplicial complex object from the set of [22m[34mgenerators[0m on which
  the  group  [22m[34mgroup[0m acts, i.e. a complex which has [22m[34mgroup[0m as automorphism group
  that  consists of the orbits specified by the list of representatives passed
  in [22m[34mgenerators[0m. Internally calls [1m[34mSCFromFacets[0m ([1m4.1-1[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> #group: (C7 : C3) : C2, order 42[0m
    [22m[35m gap> G:=Group([(2,6,5,7,3,4),(1,3,5,7,2,4,6)]);;[0m
    [22m[35m gap> c:=SCFromGenerators(G,[[ 1, 2, 4 ]]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCLib.DetermineTopologicalType(c);[0m
    [22m[35m [ [ true, 5 ] ][0m
    [22m[35m gap> # a torus[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m4.2 Generating some standard triangulations[0m
  
  [1m[4m[31m4.2-1 SCBdCrossPolytope[0m
  
  [1m[34m> SCBdCrossPolytope( [0m[22m[34mdim[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Generates the boundary of the dim-dimensional cross polytope beta^d.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCBdCrossPolytope(3); # the octahedron[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Chi, Dim, F, Facets, HasBoundary, Homology, IsConnected, [0m
    [22m[35m                    IsStronglyConnected, Name, TopologicalType, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="Bd(\beta^3)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m  Chi=2[0m
    [22m[35m  F=[ 6, 12, 8 ][0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0m
    [22m[35m  IsConnected=true[0m
    [22m[35m IsStronglyConnected=true[0m
    [22m[35m  TopologicalType="S^2"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.2-2 SCBdSimplex[0m
  
  [1m[34m> SCBdSimplex( [0m[22m[34mdim[0m[1m[34m ) _______________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Generates the boundary of the d-simplex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCBdSimplex(5);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: AutomorphismGroup, AutomorphismGroupOrder, [0m
    [22m[35m                    AutomorphismGroupStructure, AutomorphismGroupTransitivity, [0m
    [22m[35m                    Chi, Dim, F, Facets, Generators, HasBoundary, Homology, [0m
    [22m[35m                    IsConnected, IsStronglyConnected, Name, TopologicalType, [0m
    [22m[35m                    VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^4_6"[0m
    [22m[35m  Dim=4[0m
    [22m[35m  AutomorphismGroupStructure="S6"[0m
    [22m[35m  AutomorphismGroupTransitivity=6[0m
    [22m[35m  Chi=2[0m
    [22m[35m  F=[ 6, 15, 20, 15, 6 ][0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0m
    [22m[35m  IsConnected=true[0m
    [22m[35m  IsStronglyConnected=true[0m
    [22m[35m  TopologicalType="S^4"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.2-3 SCEmpty[0m
  
  [1m[34m> SCEmpty( [0m[22m[34m[0m[1m[34m ) ______________________________________________________[0mfunction
  [1mReturns:[0m  simplicial  complex  with  empty  facet  list  upon  success, [22m[32mfail[0m
            otherwise.
  
  Generates an empty complex (of dimension -1).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCEmpty();[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Faces, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="empty complex"[0m
    [22m[35m  Dim=-1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.2-4 SCSimplex[0m
  
  [1m[34m> SCSimplex( [0m[22m[34mdim[0m[1m[34m ) _________________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Generates the [22m[34mdim[0m-simplex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCSimplex(3);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Chi, Dim, Facets, Name, TopologicalType, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="B^3_4"[0m
    [22m[35m  Dim=3[0m
    [22m[35m  Chi=1[0m
    [22m[35m  TopologicalType="B^3"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m4.3 Generating new complexes from old[0m
  
  [1m[4m[31m4.3-1 SCCartesianPower[0m
  
  [1m[34m> SCCartesianPower( [0m[22m[34mcomplex, n[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  The  new  complex  is  PL-homeomorphic  to  n-times the cartesian product of
  [22m[34mcomplex[0m,  of dimensions n * dim and has f_dim^n * n * frac2n-12^n-1}! facets
  where dim denotes the dimension of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(2);;[0m
    [22m[35m gap> 4torus:=SCCartesianPower(c,4);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, TopologicalType, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="(S^1_3)^4"[0m
    [22m[35m  Dim=4[0m
    [22m[35m  TopologicalType="(S^1)^4"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> 4torus.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 4, [  ] ], [ 6, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> 4torus.Chi;[0m
    [22m[35m 0[0m
    [22m[35m gap> 4torus.F;[0m
    [22m[35m [ 81, 1215, 4050, 4860, 1944 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-2 SCCartesianProduct[0m
  
  [1m[34m> SCCartesianProduct( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  simplicial  cartesian  product of [22m[34mcomplex1[0m and [22m[34mcomplex2[0m where
  [22m[34mcomplex1[0m  and  [22m[34mcomplex2[0m  are pure, simplicial complexes. The original vertex
  labeling  of [22m[34mcomplex1[0m and [22m[34mcomplex2[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
  [22m[34mcomplex1[0m and v_j is a vertex of [22m[34mcomplex2[0m.
  
  If  n_i, i=1,2 are the number facets and if d_i, i=1,2 are the dimensions of
  [22m[34mcomplexi[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c1:=SCBdSimplex(2);;[0m
    [22m[35m gap> c2:=SCBdSimplex(3);;[0m
    [22m[35m gap> c3:=SCCartesianProduct(c1,c2);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, TopologicalType, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^1_3xS^2_4"[0m
    [22m[35m  Dim=3[0m
    [22m[35m  TopologicalType="S^1xS^2"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> c3.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 1, [  ] ], [ 1, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> c3.F;[0m
    [22m[35m [ 12, 48, 72, 36 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-3 SCConnectedComponents[0m
  
  [1m[34m> SCConnectedComponents( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________[0mfunction
  [1mReturns:[0m  a list of simplicial complexes upon success, [22m[32mfail[0m otherwise.
  
  Computes all connected components of an arbitrary simplicial complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[3,4,5],[4,5,6,7,8]]);;[0m
    [22m[35m gap> SCRename(c,"connected complex");;[0m
    [22m[35m gap> SCConnectedComponents(c);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m      Name="Connected component #1 of connected complex"[0m
    [22m[35m      Dim=4[0m
    [22m[35m [0m
    [22m[35m     /SimplicialComplex] ][0m
    [22m[35m gap> c:=SC([[1,2,3],[4,5],[6,7,8]]);;[0m
    [22m[35m gap> SCRename(c,"non-connected complex");;[0m
    [22m[35m gap> SCConnectedComponents(c);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m      Name="Connected component #1 of non-connected complex"[0m
    [22m[35m      Dim=2[0m
    [22m[35m [0m
    [22m[35m     /SimplicialComplex], [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m      Properties known: Chi, Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m      Name="Connected component #2 of non-connected complex"[0m
    [22m[35m      Dim=1[0m
    [22m[35m      Chi=0[0m
    [22m[35m [0m
    [22m[35m     /SimplicialComplex], [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m      Name="Connected component #3 of non-connected complex"[0m
    [22m[35m      Dim=2[0m
    [22m[35m [0m
    [22m[35m     /SimplicialComplex] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-4 SCConnectedProduct[0m
  
  [1m[34m> SCConnectedProduct( [0m[22m[34mcomplex, n[0m[1m[34m ) _________________________________[0mfunction
  [1mReturns:[0m  a simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  If  n >= 2, the function internally calls 1 times [1m[34mSCConnectedSum[0m ([1m4.3-5[0m) and
  (n-2) times [1m[34mSCConnectedSumMinus[0m ([1m4.3-6[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2");[0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> genus10:=SCConnectedProduct(torus,10);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (\[0m
    [22m[35m VT)#+-T^2 (VT)#+-T^2 (VT)#+-T^2 (VT)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> genus10.Chi;[0m
    [22m[35m -18[0m
    [22m[35m gap> genus10.F;[0m
    [22m[35m [ 43, 183, 122 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-5 SCConnectedSum[0m
  
  [1m[34m> SCConnectedSum( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _____________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  The  function  removes  the first simplex of [22m[34mcomplex1[0m and [22m[34mcomplex2[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   [22m[32mcomplex2[0m).   Thus,   [22m[32mSCConnectedSum[0m   is   different   from
  [1m[34mSCConnectedSumMinus[0m  ([1m4.3-6[0m)  whenever [22m[34mcomplex1[0m and [22m[34mcomplex2[0m do not allow an
  orientation reversing homeomorphism.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2");[0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> genus2:=SCConnectedSum(torus,torus);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="T^2 (VT)#+-T^2 (VT)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> genus2.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> genus2.Chi;[0m
    [22m[35m -2[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("CP^2");[0m
    [22m[35m [ [ 17, "CP^2 (VT)" ], [ 88, "CP^2#CP^2" ], [ 89, "CP^2#-CP^2" ], [0m
    [22m[35m   [ 186, "CP^2#(S^2xS^2)" ], [ 499, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0m
    [22m[35m gap> cp2:=SCLib.Load(17);;[0m
    [22m[35m # CP^2 # CP^2 (signature of intersection form is 2)  [0m
    [22m[35m gap> c1:=SCConnectedSum(cp2,cp2);;[0m
    [22m[35m # CP^2 # - CP^2 (signature of intersection form is 0)[0m
    [22m[35m gap> c2:=SCConnectedSumMinus(cp2,cp2);;[0m
    [22m[35m gap> c1.F=c2.F;[0m
    [22m[35m true[0m
    [22m[35m gap> c1.ASDet=c2.ASDet;[0m
    [22m[35m true[0m
    [22m[35m gap> SCIsIsomorphic(c1,c2);[0m
    [22m[35m false[0m
    [22m[35m gap> PrintArray(SCIntersectionForm(c1));[0m
    [22m[35m [ [  1,  0 ],[0m
    [22m[35m   [  0,  1 ] ][0m
    [22m[35m gap> PrintArray(SCIntersectionForm(c2));[0m
    [22m[35m [ [   1,   0 ],[0m
    [22m[35m   [   0,  -1 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-6 SCConnectedSumMinus[0m
  
  [1m[34m> SCConnectedSumMinus( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) ________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  The  function  removes  the first simplex of [22m[34mcomplex1[0m and [22m[34mcomplex2[0m and glues
  them  together  along the boundary. The boundary components of the complexes
  are  glued  in  without  twist.  Thus, [22m[32mSCConnectedSumMinus[0m is different from
  [1m[34mSCConnectedSum[0m  ([1m4.3-5[0m)  whenever  [22m[34mcomplex1[0m  and  [22m[34mcomplex2[0m  do  not allow an
  orientation reversing homeomorphism.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2");[0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> genus2:=SCConnectedSumMinus(torus,torus);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="T^2 (VT)#+-T^2 (VT)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> genus2.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 4, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> genus2.Chi;[0m
    [22m[35m -2[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("CP^2");[0m
    [22m[35m [ [ 17, "CP^2 (VT)" ], [ 88, "CP^2#CP^2" ], [ 89, "CP^2#-CP^2" ], [0m
    [22m[35m   [ 186, "CP^2#(S^2xS^2)" ], [ 499, "(S^3~S^1)#(CP^2)^{#5} (VT)" ] ][0m
    [22m[35m gap> cp2:=SCLib.Load(17);;[0m
    [22m[35m # CP^2 # CP^2 (signature of intersection form is 2)  [0m
    [22m[35m gap> c1:=SCConnectedSum(cp2,cp2);;[0m
    [22m[35m # CP^2 # - CP^2 (signature of intersection form is 0)[0m
    [22m[35m gap> c2:=SCConnectedSumMinus(cp2,cp2);;[0m
    [22m[35m gap> c1.F=c2.F;[0m
    [22m[35m true[0m
    [22m[35m gap> c1.ASDet=c2.ASDet;[0m
    [22m[35m true[0m
    [22m[35m gap> SCIsIsomorphic(c1,c2);[0m
    [22m[35m false[0m
    [22m[35m gap> PrintArray(SCIntersectionForm(c1));[0m
    [22m[35m [ [  1,  0 ],[0m
    [22m[35m   [  0,  1 ] ][0m
    [22m[35m gap> PrintArray(SCIntersectionForm(c2));[0m
    [22m[35m [ [   1,   0 ],[0m
    [22m[35m   [   0,  -1 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-7 SCDifferenceCycleCompress[0m
  
  [1m[34m> SCDifferenceCycleCompress( [0m[22m[34msimplex, modulus[0m[1m[34m ) ____________________[0mfunction
  [1mReturns:[0m  list with possibly duplicate entries upon success, [22m[32mfail[0m otherwise.
  
  A  difference  cycle  is  returned, i. e. a list of integer values of length
  (d+1), if d is the dimension of [22m[34mcomplex[0m, and a sum equal to [22m[34mmodulus[0m. In some
  sense this is the inverse operation of [1m[34mSCDifferenceCycleExpand[0m ([1m4.3-8[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> sphere:=SCBdSimplex(4);;[0m
    [22m[35m gap> gens:=SCGenerators(sphere);[0m
    [22m[35m [ [ [ 1, 2, 3, 4 ], [ [ 5 ] ] ] ][0m
    [22m[35m gap> diffcycle:=SCDifferenceCycleCompress(gens[1][1],5);[0m
    [22m[35m [ 1, 1, 1, 2 ][0m
    [22m[35m gap> c:=SCDifferenceCycleExpand([1,1,1,2]);;[0m
    [22m[35m gap> c.Facets;[0m
    [22m[35m [ [ 1, 2, 3, 4 ], [ 1, 2, 3, 5 ], [ 1, 2, 4, 5 ], [ 1, 3, 4, 5 ],[0m
    [22m[35m   [ 2, 3, 4, 5 ] ][0m
    [22m[35m gap>  [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-8 SCDifferenceCycleExpand[0m
  
  [1m[34m> SCDifferenceCycleExpand( [0m[22m[34mdiffcycle[0m[1m[34m ) _____________________________[0mfunction
  [1mReturns:[0m  a simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  [22m[34mdiffcycle[0m  induces  a  simplex  Delta  =  (  v_1  ,  ...  ,  v_n+1  ) by v_1
  =[22m[34mdiffcycle[1][0m,  v_i  =  v_i-1  +  [22m[34mdiffcycle[i][0m  and a cyclic group action by
  Z_sigma  where  sigma  =  sum  [22m[34mdiffcycle[i][0m is the modulus of [22m[32mdiffcycle[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCDifferenceCycleExpand([1,1,2]);;[0m
    [22m[35m gap> c.Facets;[0m
    [22m[35m [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-9 SCFVectorBdCrossPolytope[0m
  
  [1m[34m> SCFVectorBdCrossPolytope( [0m[22m[34mdim[0m[1m[34m ) __________________________________[0mfunction
  [1mReturns:[0m  a list of integers of size [22m[32mdim + 1[0m upon success, [22m[32mfail[0m otherwise.
  
  Computes the f-vector of the d-dimensional cross polytope without generating
  the underlying complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35mSCFVectorBdCrossPolytope(50);[0m
    [22m[35m[100, 4900, 156800, 3684800, 67800320, 1017004800, 12785203200,[0m
    [22m[35m  137440934400, 1282782054400, 10518812846080, 76500457062400,[0m
    [22m[35m  497252970905600, 2907017368371200, 15365663232819200, 73755183517532160,[0m
    [22m[35m  322678927889203200, 1290715711556812800, 4732624275708313600,[0m
    [22m[35m  15941471244491161600, 49418560857922600960, 141195888165493145600,[0m
    [22m[35m  372243705163572838400, 906332499528699084800, 2039248123939572940800,[0m
    [22m[35m  4241636097794311716864, 8156992495758291763200, 14501319992459185356800,[0m
    [22m[35m  23823597130468661657600, 36146147370366245273600, 50604606318512743383040,[0m
    [22m[35m  65296266217435797913600, 77539316133205010022400, 84588344872587283660800,[0m
    [22m[35m  84588344872587283660800, 77337915312079802204160, 64448262760066501836800,[0m
    [22m[35m  48771658304915190579200, 33370081998099867238400, 20535435075753764454400,[0m
    [22m[35m  11294489291664570449920, 5509506971543692902400, 2361217273518725529600,[0m
    [22m[35m  878592473867432755200, 279552150776001331200, 74547240206933688320,[0m
    [22m[35m  16205921784116019200, 2758454771764428800, 344806846470553600,[0m
    [22m[35m  28147497671065600, 1125899906842624][0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-10 SCFVectorBdSimplex[0m
  
  [1m[34m> SCFVectorBdSimplex( [0m[22m[34mdim[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  a list of integers of size [22m[32mdim + 1[0m upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  f-vector  of  the d-simplex without generating the underlying
  complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m SCFVectorBdSimplex(100);[0m
    [22m[35m [101, 5050, 166650, 4082925, 79208745, 1267339920, 17199613200,[0m
    [22m[35m   202095455100, 2088319702700, 19212541264840, 158940114100040,[0m
    [22m[35m   1192050855750300, 8160963550905900, 51297485177122800, 297525414027312240,[0m
    [22m[35m   1599199100396803290, 7995995501984016450, 37314645675925410100,[0m
    [22m[35m   163006083742200475700, 668324943343021950370, 2577824781465941808570,[0m
    [22m[35m   9373908296239788394800, 32197337191432316660400, 104641345872155029146300,[0m
    [22m[35m   322295345286237489770604, 942094086221309585483304,[0m
    [22m[35m   2616928017281415515231400, 6916166902815169575968700,[0m
    [22m[35m   17409661513983013070541900, 41783187633559231369300560,[0m
    [22m[35m   95696978128474368620010960, 209337139656037681356273975,[0m
    [22m[35m   437704928371715151926754675, 875409856743430303853509350,[0m
    [22m[35m   1675784582908852295948146470, 3072271735332895875904935195,[0m
    [22m[35m   5397234129638871133346507775, 9090078534128625066688855200,[0m
    [22m[35m   14683973016669317415420458400, 22760158175837441993901710520,[0m
    [22m[35m   33862674359172779551902544920, 48375249084532542217003635600,[0m
    [22m[35m   66375341767149302111702662800, 87494768693060443692698964600,[0m
    [22m[35m   110826707011209895344085355160, 134919469404951176940625649760,[0m
    [22m[35m   157884485473879036845412994400, 177620046158113916451089618700,[0m
    [22m[35m   192119641762857909630770403900, 199804427433372226016001220056,[0m
    [22m[35m   199804427433372226016001220056, 192119641762857909630770403900,[0m
    [22m[35m   177620046158113916451089618700, 157884485473879036845412994400,[0m
    [22m[35m   134919469404951176940625649760, 110826707011209895344085355160,[0m
    [22m[35m   87494768693060443692698964600, 66375341767149302111702662800,[0m
    [22m[35m   48375249084532542217003635600, 33862674359172779551902544920,[0m
    [22m[35m   22760158175837441993901710520, 14683973016669317415420458400,[0m
    [22m[35m   9090078534128625066688855200, 5397234129638871133346507775,[0m
    [22m[35m   3072271735332895875904935195, 1675784582908852295948146470,[0m
    [22m[35m   875409856743430303853509350, 437704928371715151926754675,[0m
    [22m[35m   209337139656037681356273975, 95696978128474368620010960,[0m
    [22m[35m   41783187633559231369300560, 17409661513983013070541900,[0m
    [22m[35m   6916166902815169575968700, 2616928017281415515231400,[0m
    [22m[35m   942094086221309585483304, 322295345286237489770604,[0m
    [22m[35m   104641345872155029146300, 32197337191432316660400, 9373908296239788394800,[0m
    [22m[35m   2577824781465941808570, 668324943343021950370, 163006083742200475700,[0m
    [22m[35m   37314645675925410100, 7995995501984016450, 1599199100396803290,[0m
    [22m[35m   297525414027312240, 51297485177122800, 8160963550905900, 1192050855750300,[0m
    [22m[35m   158940114100040, 19212541264840, 2088319702700, 202095455100, 17199613200,[0m
    [22m[35m   1267339920, 79208745, 4082925, 166650, 5050, 101][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.3-11 SCStronglyConnectedComponents[0m
  
  [1m[34m> SCStronglyConnectedComponents( [0m[22m[34mcomplex[0m[1m[34m ) _________________________[0mfunction
  [1mReturns:[0m  a list of simplicial complexes upon success, [22m[32mfail[0m otherwise.
  
  Computes  all  strongly  connected  components  of  an  arbitrary simplicial
  complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[3,4,5],[4,5,6,7,8,9],[6,7,8,9,10,11]]);;[0m
    [22m[35m gap> comps:=SCStronglyConnectedComponents(c);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="Strongly connected component #1 of unnamed complex n20"[0m
    [22m[35m      Dim=2[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex], [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="Strongly connected component #2 of unnamed complex n20"[0m
    [22m[35m      Dim=5[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex], [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="Strongly connected component #3 of unnamed complex n20"[0m
    [22m[35m      Dim=5[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex] ][0m
    [22m[35m gap> comps[1].Facets;[0m
    [22m[35m [ [ 1, 2, 3 ] ][0m
    [22m[35m gap> comps[2].Facets;[0m
    [22m[35m [ [ 3, 4, 5 ], [ 4, 5, 6, 7, 8, 9 ] ][0m
    [22m[35m gap> comps[3].Facets;[0m
    [22m[35m [ [ 6, 7, 8, 9, 10, 11 ] ][0m
    [22m[35m gap>  [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m4.4 Vertex labelings and label operations[0m
  
  Functions  operating  on  the  labels  of  a complex such as the name or the
  vertex labeling.
  
  Internally,  [1msimpcomp[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 [1m[34mSCRelabelStandard[0m ([1m4.4-5[0m).
  
  [1m[4m[31m4.4-1 SCLabelMax[0m
  
  [1m[34m> SCLabelMax( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  maximal vertex label of [22m[34mcomplex[0m upon success, [22m[32mfail[0m otherwise.
  
  The  maximum  over  all  vertex  labels  is  determined  by the gap function
  [22m[32mMaximumList[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCRelabel(c,[10,100,100000,3500]);;[0m
    [22m[35m gap> SCLabelMax(c);[0m
    [22m[35m 100000[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCRelabel(c,["a","bbb",5,[1,1]]);[0m
    [22m[35m true[0m
    [22m[35m gap> SCLabelMax(c);[0m
    [22m[35m "bbb"[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-2 SCLabelMin[0m
  
  [1m[34m> SCLabelMin( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  minimal vertex label of [22m[34mcomplex[0m upon success, [22m[32mfail[0m otherwise.
  
  The  minimum  over  all  vertex  labels  is  determined  by the gap function
  [22m[32mMinimumList[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCRelabel(c,[10,100,100000,3500]);;[0m
    [22m[35m gap> SCLabelMin(c);[0m
    [22m[35m 10[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCRelabel(c,["a","bbb",5,[1,1]]);[0m
    [22m[35m true[0m
    [22m[35m gap> SCLabelMin(c);[0m
    [22m[35m 5[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-3 SCLabels[0m
  
  [1m[34m> SCLabels( [0m[22m[34mcomplex[0m[1m[34m ) ______________________________________________[0mfunction
  [1mReturns:[0m  a list of vertex labels upon success, [22m[32mfail[0m otherwise.
  
  Returns the vertex labels of [22m[34mcomplex[0m as a list.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromFacets(Combinations(["a","b","c","d"],3));;[0m
    [22m[35m gap> SCLabels(c);[0m
    [22m[35m [ "a", "b", "c", "d" ][0m
    [22m[35m gap> c.Labels;[0m
    [22m[35m [ "a", "b", "c", "d" ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-4 SCRelabel[0m
  
  [1m[34m> SCRelabel( [0m[22m[34mcomplex, maptable[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m upon success, [22m[32mfail[0m otherwise.
  
  [22m[34mmaptable[0m has to be a list of length f_0. The function maps the i-th entry of
  [22m[34mmaptable[0m  to the i-th entry of the current vertex labels. If [22m[34mcomplex[0m has the
  standard vertex labeling [1, ... , n] i is mapped to [22m[34mmaptable[i][0m.
  
  Internally the property ``VertexLabels'' of [22m[34mcomplex[0m is replaced by [22m[34mmaptable.[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByAttribute("F[1]=12"); [0m
    [22m[35m [ [ 56, "S^2 (VT)" ], [ 57, "T^2 (VT)" ], [ 58, "T^2 (VT)" ], [0m
    [22m[35m   [ 59, "T^2 (VT)" ], [ 60, "T^2 (VT)" ], [ 61, "(T^2)#2 (VT)" ], [0m
    [22m[35m   [ 62, "(P^2)#4 (VT)" ], [ 63, "(T^2)#2 (VT)" ], [ 64, "(T^2)#2 (VT)" ], [0m
    [22m[35m gap> c:=SCLib.Load(56);;[0m
    [22m[35m gap> SCPropertyByName(c,"VertexLabels");[0m
    [22m[35m [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ][0m
    [22m[35m gap> SCRelabel(c,["a","b","c","d","e","f","g","h","i","j","k","l"]);[0m
    [22m[35m true[0m
    [22m[35m gap> SCLabels(c);[0m
    [22m[35m [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l" ][0m
    [22m[35m gap>  [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-5 SCRelabelStandard[0m
  
  [1m[34m> SCRelabelStandard( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m upon success upon success, [22m[32mfail[0m otherwise.
  
  Maps vertex labels v_1 , ... , v_n of [22m[34mcomplex[0m to [1 , ... , n].
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByAttribute("F[1]=12"); [0m
    [22m[35m [ [ 56, "S^2 (VT)" ], [ 57, "T^2 (VT)" ], [ 58, "T^2 (VT)" ], [0m
    [22m[35m   [ 59, "T^2 (VT)" ], [ 60, "T^2 (VT)" ], [ 61, "(T^2)#2 (VT)" ], [0m
    [22m[35m   [ 62, "(P^2)#4 (VT)" ], [ 63, "(T^2)#2 (VT)" ], [ 64, "(T^2)#2 (VT)" ], [0m
    [22m[35m gap> c:=SCLib.Load(56);;[0m
    [22m[35m gap> SCRelabel(c,[4..15]);[0m
    [22m[35m true[0m
    [22m[35m gap> SCVertices(c);[0m
    [22m[35m [ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ][0m
    [22m[35m gap> SCRelabelStandard(c);[0m
    [22m[35m true[0m
    [22m[35m gap> SCLabels(c);[0m
    [22m[35m [ 1 .. 12 ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-6 SCRelabelTransposition[0m
  
  [1m[34m> SCRelabelTransposition( [0m[22m[34mcomplex, pair[0m[1m[34m ) __________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m upon success, [22m[32mfail[0m otherwise.
  
  Permutes  vertex  labels of a single pair of vertices. [22m[34mpair[0m has to be a list
  of length 2 and a sublist of the property ``VertexLabels''.
  
  The   function  is  equivalent  to  [1m[34mSCRelabel[0m  ([1m4.4-4[0m)  with  [22m[34mmaptable[0m  =  [
  VertexLabels[1]  ,  ...  ,  VertexLabels[i] , ... , VertexLabels[j] , dots ,
  VertexLabels[n]]  if  [22m[34mpair[0m = [ VertexLabels[j] , VertexLabels[i]], j <= i, j
  <> i.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCVertices(c);[0m
    [22m[35m [ 1, 2, 3, 4 ][0m
    [22m[35m gap> SCRelabelTransposition(c,[1,2]);;[0m
    [22m[35m gap> SCLabels(c);[0m
    [22m[35m [ 2, 1, 3, 4 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-7 SCRename[0m
  
  [1m[34m> SCRename( [0m[22m[34mcomplex, name[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m upon success, [22m[32mfail[0m otherwise.
  
  Renames a simplicial complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(5);;[0m
    [22m[35m gap> SCName(c);[0m
    [22m[35m "S^4_6"[0m
    [22m[35m gap> SCRename(c,"mySphere");[0m
    [22m[35m true[0m
    [22m[35m gap> SCName(c);[0m
    [22m[35m "mySphere"[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-8 SCSortComplex[0m
  
  [1m[34m> SCSortComplex( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex from sorted facet list upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3); [0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: AutomorphismGroup, AutomorphismGroupOrder, [0m
    [22m[35m                    AutomorphismGroupStructure, AutomorphismGroupTransitivity,  [0m
    [22m[35m                    Chi, Dim, F, Facets, Generators, HasBoundary, Homology, [0m
    [22m[35m                    IsConnected, IsStronglyConnected, Name, TopologicalType, [0m
    [22m[35m                    VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^2_4"[0m
    [22m[35m  Dim=2[0m
    [22m[35m  AutomorphismGroupStructure="S4"[0m
    [22m[35m  AutomorphismGroupTransitivity=4[0m
    [22m[35m  Chi=2[0m
    [22m[35m  F=[ 4, 6, 4 ][0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0m
    [22m[35m  IsConnected=true[0m
    [22m[35m  IsStronglyConnected=true[0m
    [22m[35m  TopologicalType="S^2"[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCRelabel(c,[4,3,2,1]);;[0m
    [22m[35m gap> SCFacets(c);[0m
    [22m[35m [ [ 4, 3, 2 ], [ 4, 3, 1 ], [ 4, 2, 1 ], [ 3, 2, 1 ] ][0m
    [22m[35m gap> d:=SCSortComplex(c);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCFacets(d);[0m
    [22m[35m [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.4-9 SCUnlabelFace[0m
  
  [1m[34m> SCUnlabelFace( [0m[22m[34mcomplex, face[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a list upon success, [22m[32mfail[0m otherwise.
  
  Computes the standard labeling of [22m[34mface[0m in [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCRelabel(c,["a","bbb",5,[1,1]]);;[0m
    [22m[35m gap> SCUnlabelFace(c,["a","bbb",5]);[0m
    [22m[35m [ 1, 2, 3 ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m4.5 Computing properties of simplicial complexes[0m
  
  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.
  
  [1m[4m[31m4.5-1 SCAltshulerSteinberg[0m
  
  [1m[34m> SCAltshulerSteinberg( [0m[22m[34mcomplex[0m[1m[34m ) __________________________________[0mfunction
  [1mReturns:[0m  a non-negative integer upon success, [22m[32mfail[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
  times   m,  AS_ij=1  if  v_i  in  F_j,  AS_ij=0  otherwise,  is  called  the
  Altshuler-Steinberg-determinant.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2"); [0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> SCAltshulerSteinberg(torus);[0m
    [22m[35m 73728[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCAltshulerSteinberg(c);[0m
    [22m[35m 9[0m
    [22m[35m gap> c:=SCBdSimplex(4);;[0m
    [22m[35m gap> SCAltshulerSteinberg(c);[0m
    [22m[35m 16[0m
    [22m[35m gap> c:=SCBdSimplex(5);;[0m
    [22m[35m gap> SCAltshulerSteinberg(c);[0m
    [22m[35m 25[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-2 SCAutomorphismGroup[0m
  
  [1m[34m> SCAutomorphismGroup( [0m[22m[34mcomplex[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a group upon success, [22m[32mfail[0m otherwise
  
  Computes  the  automorphism  group  of  a  strongly connected pseudomanifold
  [22m[34mcomplex[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 [1mGRAPE[0m (see
  [S06],  which  is based on the program [22m[32mnauty[0m by Brendan McKay [M84]). If the
  package   [1mGRAPE[0m   is  not  available,  this  function  call  falls  back  to
  [1m[34mSCAutomorphismGroupInternal[0m ([1m4.5-3[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K3"); [0m
    [22m[35m [ [ 584, "K3 surface" ] ][0m
    [22m[35m gap> k3surf:=SCLib.Load(584);;[0m
    [22m[35m gap> SCAutomorphismGroup(k3surf);[0m
    [22m[35m ((C2 x C2 x C2 x C2) : C5) : C3[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-3 SCAutomorphismGroupInternal[0m
  
  [1m[34m> SCAutomorphismGroupInternal( [0m[22m[34mcomplex[0m[1m[34m ) ___________________________[0mfunction
  [1mReturns:[0m  permutation  group  in  structure  description  upon success, [22m[32mfail[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
  [22m[32mStructureDescription()[0m.  Note,  that  this is not always unique, since every
  non trivial semi-direct product is denoted by ''[22m[32m:[0m''.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(5);;[0m
    [22m[35m gap> SCAutomorphismGroupInternal(c);[0m
    [22m[35m S6[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(2);;[0m
    [22m[35m gap> g:=SCAutomorphismGroupInternal(c);[0m
    [22m[35m S3[0m
    [22m[35m gap> List(g);[0m
    [22m[35m [(), (1,3), (1,2,3), (2,3), (1,3,2), (1,2)][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-4 SCBoundary[0m
  
  [1m[34m> SCBoundary( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  boundary  of  a combinatorial pseudomanifold. The boundary is
  returned as a simplicial complex and stored as a property of [22m[34mcomplex[0m.
  
  If the complex is not a pseudomanifold the function returns [22m[32mfail[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m[0m
    [22m[35m Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m Name="unnamed complex n"[0m
    [22m[35m Dim=3[0m
    [22m[35m[0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCBoundary(c);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="Bd(unnamed complex 5)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> c;  [0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Boundary, Dim, Faces, Facets, HasBoundary, Name, [0m
    [22m[35m                    VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex 5"[0m
    [22m[35m  Dim=3[0m
    [22m[35m  HasBoundary=true[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-5 SCDim[0m
  
  [1m[34m> SCDim( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________________[0mfunction
  [1mReturns:[0m  an integer value >= -1 upon success, [22m[32mfail[0m otherwise.
  
  Computes  the dimension of a simplicial complex. If the complex is not pure,
  the dimension of the highest dimensional simplex is returned.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> complex:=SC([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0m
    [22m[35m gap> SCDim(complex);                                    [0m
    [22m[35m 2[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1], [2,4], [3,4], [5,6,7,8]]);;[0m
    [22m[35m gap> SCDim(c);[0m
    [22m[35m 3[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-6 SCDualGraph[0m
  
  [1m[34m> SCDualGraph( [0m[22m[34mcomplex[0m[1m[34m ) ___________________________________________[0mfunction
  [1mReturns:[0m  A 1-dimensional simplicial complex upon success, [22m[32mfail[0m otherwise
  
  Computes the dual graph of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> sphere:=SCBdSimplex(5);;[0m
    [22m[35m gap> graph:=SCFaces(sphere,1);       [0m
    [22m[35m [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0m
    [22m[35m   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0m
    [22m[35m   [ 5, 6 ] ][0m
    [22m[35m gap> graph:=SC(graph);;              [0m
    [22m[35m gap> dualGraph:=SCDualGraph(sphere); [0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="dual graph of S^4_6"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> graph.Facets = dualGraph.Facets;[0m
    [22m[35m true[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-7 SCEulerCharacteristic[0m
  
  [1m[34m> SCEulerCharacteristic( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________[0mfunction
  [1mReturns:[0m  integer upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> complex:=SCFromFacets([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0m
    [22m[35m gap> SCEulerCharacteristic(complex);[0m
    [22m[35m 2[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> s2:=SCBdSimplex(3);;[0m
    [22m[35m gap> s2.EulerCharacteristic;[0m
    [22m[35m 2[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-8 SCFVector[0m
  
  [1m[34m> SCFVector( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________________[0mfunction
  [1mReturns:[0m  a list of integers upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  f-vector  of  a  simplicial  complex.  I.  e.  the  number of
  i-dimensional  faces  for  0  <=  i  <=  d,  where d is the dimension of the
  complex.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> complex:=SC([[1,2,3], [1,2,4], [1,3,4], [2,3,4]]);;[0m
    [22m[35m gap> SCFVector(complex);[0m
    [22m[35m [4, 6, 4][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-9 SCFaceLattice[0m
  
  [1m[34m> SCFaceLattice( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0m
    [22m[35m gap> SCFaceLattice(c);[0m
    [22m[35m [ [ ["a"], ["b"], ["c"], ["d"] ],[0m
    [22m[35m   [ ["a", "b"], ["a", "c"], ["a", "d"], [0m
    [22m[35m 	   ["b", "c"], ["b", "d"], ["c", "d"] ],[0m
    [22m[35m   [ ["a", "b", "c"], ["a", "b", "d"], [0m
    [22m[35m     ["a", "c", "d"], ["b", "c", "d"] ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-10 SCFaceLatticeEx[0m
  
  [1m[34m> SCFaceLatticeEx( [0m[22m[34mcomplex[0m[1m[34m ) _______________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0m
    [22m[35m gap> SCFaceLatticeEx(c);[0m
    [22m[35m [ [ [1], [2], [3], [4] ],[0m
    [22m[35m   [ [1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4] ],[0m
    [22m[35m   [ [1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4] ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-11 SCFaces[0m
  
  [1m[34m> SCFaces( [0m[22m[34mcomplex, dim[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a face list upon success, [22m[32mfail[0m otherwise.
  
  This is a synonym of the function [1m[34mSCSkel[0m ([1m4.5-44[0m).
  
  [1m[4m[31m4.5-12 SCFacesEx[0m
  
  [1m[34m> SCFacesEx( [0m[22m[34mcomplex, dim[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  a face list upon success, [22m[32mfail[0m otherwise.
  
  This is a synonym of the function [1m[34mSCSkelEx[0m ([1m4.5-45[0m).
  
  [1m[4m[31m4.5-13 SCFacets[0m
  
  [1m[34m> SCFacets( [0m[22m[34mcomplex[0m[1m[34m ) ______________________________________________[0mfunction
  [1mReturns:[0m  a facet list upon success, [22m[32mfail[0m otherwise.
  
  Returns the facets of a simplicial complex in the original vertex labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[2,3],[3,4],[4,2]]);;[0m
    [22m[35m gap> SCFacets(c);[0m
    [22m[35m [ [ 2, 3 ], [ 3, 4 ], [ 2, 4 ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-14 SCFacetsEx[0m
  
  [1m[34m> SCFacetsEx( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a facet list upon success, [22m[32mfail[0m otherwise.
  
  Returns  the  facets  of a simplicial complex as they are stored, i. e. with
  standard vertex labeling from 1 to n.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[2,3],[3,4],[4,2]]);;[0m
    [22m[35m gap> SCFacetsEx(c);[0m
    [22m[35m [ [ 1, 2 ], [ 2, 3 ], [ 1, 3 ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-15 SCFpBettiNumbers[0m
  
  [1m[34m> SCFpBettiNumbers( [0m[22m[34mcomplex, p[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a list of non-negative integers upon success, [22m[32mfail[0m otherwise.
  
  Computes  the F_p Betti numbers of a simplicial complex for any prime number
  [22m[32mp[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K^2");    [0m
    [22m[35m [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0m
    [22m[35m gap> kleinBottle:=SCLib.Load(19);; [0m
    [22m[35m gap> SCHomology(kleinBottle);      [0m
    [22m[35m [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0m
    [22m[35m gap> SCFpBettiNumbers(kleinBottle,2);[0m
    [22m[35m [ 1, 2, 1 ][0m
    [22m[35m gap> SCFpBettiNumbers(kleinBottle,3);[0m
    [22m[35m [ 1, 1, 0 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-16 SCFundamentalGroup[0m
  
  [1m[34m> SCFundamentalGroup( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________[0mfunction
  [1mReturns:[0m  an fp group upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  first  fundamental group of [22m[34mcomplex[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  [22m[34mcomplex[0m  in  standard  labeling.  You can use GAP's [22m[32mSimplifiedFpGroup[0m to
  simplify the group presenation.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m # an RP^2[0m
    [22m[35m gap> c:=SC([[ 1, 2, 3 ], [ 1, 2, 6 ], [ 1, 3, 5 ], [ 1, 4, 5 ], [ 1, 4, 6 ],[0m
    [22m[35m           [ 2, 3, 4 ], [ 2, 4, 5 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ]]);;[0m
    [22m[35m gap> g:=SCFundamentalGroup(c);[0m
    [22m[35m <fp group on the generators [ [2,3], [2,4], [2,5], [2,6], [3,4], [3,5], [0m
    [22m[35m   [3,6], [4,5], [4,6], [5,6] ]>[0m
    [22m[35m gap> Order(g);[0m
    [22m[35m 2[0m
    [22m[35m gap> Elements(g);[0m
    [22m[35m [ <identity ...>, [2,4] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-17 SCGVector[0m
  
  [1m[34m> SCGVector( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________________[0mfunction
  [1mReturns:[0m  a list of non-negative integers upon success, [22m[32mfail[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
  
  $h_{-1}:=1 ; \quad g_i:=h_i - h_{i-1} ; \quad \frac{d-1}{2} \geq i \geq 0 $
  
  is  called  the  g-vector  of  C.  For  the  definition  of the h-vector see
  [1m[34mSCHVector[0m ([1m4.5-20[0m). The information contained in g suffices to determine the
  f-vector of C.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");[0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2_6:=SCLib.Load(3);;[0m
    [22m[35m gap> SCFVector(rp2_6);[0m
    [22m[35m [ 6, 15, 10 ][0m
    [22m[35m gap> SCHVector(rp2_6);[0m
    [22m[35m [ 3, 6, 0 ][0m
    [22m[35m gap> SCGVector(rp2_6);[0m
    [22m[35m [ 2 ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-18 SCGenerators[0m
  
  [1m[34m> SCGenerators( [0m[22m[34mcomplex[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a  list  of pairs of the form [22m[32m[ list, integer ][0m upon success, [22m[32mfail[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 [22m[34mcomplex[0m.
  The function will return the simplices together with the length of the their
  orbits.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2"); [0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> SCGenerators(torus); [0m
    [22m[35m [ [ [ 1, 2, 4 ], 14 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K3");[0m
    [22m[35m [ [ 584, "K3 surface" ] ][0m
    [22m[35m gap> SCLib.Load(584);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: AltshulerSteinberg, AutomorphismGroup, [0m
    [22m[35m                    AutomorphismGroupSize, AutomorphismGroupStructure, [0m
    [22m[35m                    AutomorphismGroupTransitivity, Boundary, Chi, [0m
    [22m[35m                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0m
    [22m[35m                    Generators, H, HasBoundary, HasInterior, Homology, [0m
    [22m[35m                    Interior, IsCentrallySymmetric, IsConnected, [0m
    [22m[35m                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0m
    [22m[35m                    MinimalNonFaces, Name, Neighborliness, Orientation, [0m
    [22m[35m                    StronglyConnected, VertexLabels, Vertices.[0m
    [22m[35m [0m
    [22m[35m  Name="K3 surface"[0m
    [22m[35m  Dim=4[0m
    [22m[35m  AutomorphismGroupSize=240[0m
    [22m[35m  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0m
    [22m[35m  AutomorphismGroupTransitivity=2[0m
    [22m[35m  Chi=24[0m
    [22m[35m  F=[ 16, 120, 560, 720, 288 ][0m
    [22m[35m  G=[ 10, 55 ][0m
    [22m[35m  H=[ 11, 66, 286, -99, 23 ][0m
    [22m[35m  HasBoundary=false[0m
    [22m[35m  HasInterior=true[0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 22, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0m
    [22m[35m  IsCentrallySymmetric=false[0m
    [22m[35m  IsConnected=true[0m
    [22m[35m  IsEulerianManifold=true[0m
    [22m[35m  IsOrientable=true[0m
    [22m[35m  IsPM=true[0m
    [22m[35m  IsPure=true[0m
    [22m[35m  Neighborliness=3[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCGenerators(last);[0m
    [22m[35m [ [ [ 1, 2, 3, 8, 12 ], 240 ], [ [ 1, 2, 5, 8, 14 ], 48 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-19 SCGeneratorsEx[0m
  
  [1m[34m> SCGeneratorsEx( [0m[22m[34mcomplex[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  a  list  of pairs of the form [22m[32m[ list, integer ][0m upon success, [22m[32mfail[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 [22m[34mcomplex[0m.
  The function will return the simplices together with the length of the their
  orbits.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2"); [0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> SCGeneratorsEx(torus); [0m
    [22m[35m [ [ [ 1, 2, 4 ], 14 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K3");[0m
    [22m[35m [ [ 584, "K3 surface" ] ][0m
    [22m[35m gap> SCLib.Load(584);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: AltshulerSteinberg, AutomorphismGroup, [0m
    [22m[35m                    AutomorphismGroupSize, AutomorphismGroupStructure, [0m
    [22m[35m                    AutomorphismGroupTransitivity, Boundary, Chi, [0m
    [22m[35m                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0m
    [22m[35m                    Generators, H, HasBoundary, HasInterior, Homology, [0m
    [22m[35m                    Interior, IsCentrallySymmetric, IsConnected, [0m
    [22m[35m                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0m
    [22m[35m                    MinimalNonFaces, Name, Neighborliness, Orientation, [0m
    [22m[35m                    StronglyConnected, VertexLabels, Vertices.[0m
    [22m[35m [0m
    [22m[35m  Name="K3 surface"[0m
    [22m[35m  Dim=4[0m
    [22m[35m  AutomorphismGroupSize=240[0m
    [22m[35m  AutomorphismGroupStructure="((C2 x C2 x C2 x C2) : C5) : C3"[0m
    [22m[35m  AutomorphismGroupTransitivity=2[0m
    [22m[35m  Chi=24[0m
    [22m[35m  F=[ 16, 120, 560, 720, 288 ][0m
    [22m[35m  G=[ 10, 55 ][0m
    [22m[35m  H=[ 11, 66, 286, -99, 23 ][0m
    [22m[35m  HasBoundary=false[0m
    [22m[35m  HasInterior=true[0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 22, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0m
    [22m[35m  IsCentrallySymmetric=false[0m
    [22m[35m  IsConnected=true[0m
    [22m[35m  IsEulerianManifold=true[0m
    [22m[35m  IsOrientable=true[0m
    [22m[35m  IsPM=true[0m
    [22m[35m  IsPure=true[0m
    [22m[35m  Neighborliness=3[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCGeneratorsEx(last);[0m
    [22m[35m [ [ [ 1, 2, 3, 8, 12 ], 240 ], [ [ 1, 2, 5, 8, 14 ], 48 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-20 SCHVector[0m
  
  [1m[34m> SCHVector( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________________[0mfunction
  [1mReturns:[0m  a list of integers upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  h-vector  of a simplicial complex. The h-vector is defined as
  follows:
  
  Let  f in N^d+1 be the f-vector of a d-dimensional simplicial complex, i. e.
  the  number  of  its  i-faces  for  0  <=  i  <=  d C, and let p(C,x) be the
  polynomial
  
  $p(C,x)=x^{d+1}+f_0 x^d +f_1 + x^{d-1} + \ldots + f_{d-1} x + f_d$
  
  of degree d+1. Then h=(h_0 , ... , h_d) in Z^d+1 is given by
  
  $q(C,x):=p(C,x-1)  =x^{d+1}+h_0  x^d  +h_1  + x^{d-1} + \ldots + h_{d-1} x +
  h_d.$
  
  This results into the following formula
  
  $  h_k:=(-1)^{k+1}{d+1  \choose k+1} + \sum \limits_{i=0}^{k} (-1)^{k-i}{d-i
  \choose d-k} f_i.$
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");[0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2_6:=SCLib.Load(3);;[0m
    [22m[35m gap> SCFVector(rp2_6);[0m
    [22m[35m [ 6, 15, 10 ][0m
    [22m[35m gap> SCHVector(rp2_6);[0m
    [22m[35m [ 3, 6, 0 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-21 SCHasBoundary[0m
  
  [1m[34m> SCHasBoundary( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks,  if  a  combinatorial  pseudomanifold [22m[34mcomplex[0m has a boundary. If the
  complex is closed [22m[32mfalse[0m is returned, if the complex is not a pseudomanifold,
  [22m[32mfail[0m is returned.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K^2"); [0m
    [22m[35m [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0m
    [22m[35m gap> kleinBottle:=SCLib.Load(19);;[0m
    [22m[35m gap> SCHasBoundary(kleinBottle);[0m
    [22m[35m false[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0m
    [22m[35m gap> SCHasBoundary(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-22 SCHasInterior[0m
  
  [1m[34m> SCHasInterior( [0m[22m[34m[0m[1m[34m ) ________________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Returns  [22m[32mtrue[0m  if there exist at least one (d-1)-face of [22m[34mcomplex[0m that is not
  in its boundary.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0m
    [22m[35m gap> SCHasInterior(c)[0m
    [22m[35m true[0m
    [22m[35m gap> c:=SC([[1,2,3,4]]);;[0m
    [22m[35m gap> SCHasInterior(c);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-23 SCHomology[0m
  
  [1m[34m> SCHomology( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a list of pairs of the form [22m[32m[ integer, list ][0m.
  
  Computes  the  integral  simplicial homology groups for a simplicial complex
  (internally  calls  [22m[32mSimplicialHomology(complex.FacetsEx)[0m  from  the [1mhomology[0m
  package, version 1.4.2., see [DH+04].
  
  If  the  [1mhomology[0m package is not available, this function call falls back to
  [1m[34mSCHomologyInternal[0m  ([1m5.1-5[0m).  The output is a list of homology groups of the
  form  [H_0,....,H_d], where d is the dimension of [22m[34mcomplex[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 times dots times 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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("K^2");[0m
    [22m[35m [ [ 19, "K^2 (VT)" ], [ 230, "K^2 (VT)" ] ][0m
    [22m[35m gap> kleinBottle:=SCLib.Load(19);;[0m
    [22m[35m gap> kleinBottle.Homology;          [0m
    [22m[35m [ [ 0, [  ] ], [ 1, [ 2 ] ], [ 0, [  ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("L_");[0m
    [22m[35m [ [ 139, "L_3_1" ], [ 282, "L_4_1" ], [ 300, "L_5_2" ], [0m
    [22m[35m   [ 411, "(S^2xS^1)#L_3_1" ], [ 412, "(S^2~S^1)#L_3_1" ], [ 444, "L_5_1" ], [0m
    [22m[35m   [ 445, "(S^2xS^1)#2#L_3_1" ], [ 446, "(S^2~S^1)#2#L_3_1" ], ...[0m
    [22m[35m gap> c:=SCConnectedSum(SCConnectedProduct(SCLib.Load(446),3),[0m
    [22m[35m  SCConnectedProduct(SCLib.Load(445),2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels, Vertices.[0m
    [22m[35m [0m
    [22m[35m  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)#[0m
    [22m[35m   2#L_3_1#+-(S^2xS^1)#2#L_3_1"[0m
    [22m[35m  Dim=3[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCHomology(c);[0m
    [22m[35m [ [ 0, [  ] ], [ 10, [ 3, 3, 3, 3, 3 ] ], [ 9, [ 2 ] ], [ 0, [  ] ] ][0m
    [22m[35m gap> SCFpBettiNumbers(c,2);[0m
    [22m[35m [ 1, 10, 10, 1 ][0m
    [22m[35m gap> SCFpBettiNumbers(c,3);[0m
    [22m[35m [ 1, 15, 14, 0 ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-24 SCIncidences[0m
  
  [1m[34m> SCIncidences( [0m[22m[34mcomplex, dim[0m[1m[34m ) _____________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[0m otherwise.
  
  Returns  an  array  of  all [22m[34mdim[0m-faces of [22m[34mcomplex[0m. The array is sorted by the
  incidence of the face in the ([22m[34mdim[0m+1)-skeleton of the complex, i. e. the i-th
  entry  of  the  array contains all [22m[34mdim[0m-faces with incidence i. The faces are
  returned in the original labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[2,3,4],[3,4,5],[4,5,6],[1,5,6],[1,4,6],[2,3,6]]);;[0m
    [22m[35m gap> SCIncidences(c,1);[0m
    [22m[35m [ [ [1, 2], [1, 3], [1, 4], [1, 5], [0m
    [22m[35m     [2, 4], [2, 6], [3, 5], [3, 6] ], [0m
    [22m[35m   [ [1, 6], [3, 4], [4, 5], [4, 6], [5, 6] ],[0m
    [22m[35m   [ [2, 3] ] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-25 SCIncidencesEx[0m
  
  [1m[34m> SCIncidencesEx( [0m[22m[34mcomplex, dim[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[0m otherwise.
  
  Returns  an  array  of  all [22m[34mdim[0m-faces of [22m[34mcomplex[0m. The array is sorted by the
  incidence of the face in the ([22m[34mdim[0m+1)-skeleton of the complex, i. e. the i-th
  entry  of  the  array contains all [22m[34mdim[0m-faces with incidence i. The faces are
  returned in the standard labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[2,3,4],[3,4,5],[4,5,6],[1,5,6],[1,4,6],[2,3,6]]);;[0m
    [22m[35m gap> SCIncidences(c,1);[0m
    [22m[35m [ [ [1, 2], [1, 3], [1, 4], [1, 5], [0m
    [22m[35m     [2, 4], [2, 6], [3, 5], [3, 6] ], [0m
    [22m[35m   [ [1, 6], [3, 4], [4, 5], [4, 6], [5, 6] ],[0m
    [22m[35m   [ [2, 3] ] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-26 SCInterior[0m
  
  [1m[34m> SCInterior( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3,4],[1,2,3,5],[1,2,4,5],[1,3,4,5]]);;[0m
    [22m[35m gap> SCInterior(c).Facets;[0m
    [22m[35m [[1, 2, 3], [1, 2, 4], [1, 2, 5], [1, 3, 4], [1, 3, 5],[0m
    [22m[35m   [1, 4, 5]][0m
    [22m[35m gap> c:=SC([[1,2,3,4]]);;[0m
    [22m[35m gap> SCInterior(c).Facets;[0m
    [22m[35m [][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-27 SCIsCentrallySymmetric[0m
  
  [1m[34m> SCIsCentrallySymmetric( [0m[22m[34mcomplex[0m[1m[34m ) ________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks,  if  a  simplicial  complex  is  centrally  symmetric,  i. e. if its
  automorphism group contains a fixed point free involution.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;[0m
    [22m[35m gap> SCIsCentrallySymmetric(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(4);;[0m
    [22m[35m gap> SCIsCentrallySymmetric(c);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-28 SCIsConnected[0m
  
  [1m[34m> SCIsConnected( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks, if a simplicial complex is connected.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(1);;[0m
    [22m[35m gap> SCIsConnected(c);[0m
    [22m[35m false[0m
    [22m[35m gap> c:=SCBdSimplex(2);;[0m
    [22m[35m gap> SCIsConnected(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-29 SCIsEmpty[0m
  
  [1m[34m> SCIsEmpty( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks if [22m[34mcomplex[0m is empty
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1]]);;[0m
    [22m[35m gap> SCIsEmpty(c);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([]);;[0m
    [22m[35m gap> SCIsEmpty(c);[0m
    [22m[35m true[0m
    [22m[35m gap> c:=SC([[]]);;[0m
    [22m[35m gap> SCIsEmpty(c);[0m
    [22m[35m true[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-30 SCIsEulerianManifold[0m
  
  [1m[34m> SCIsEulerianManifold( [0m[22m[34mcomplex[0m[1m[34m ) __________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[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 [22m[32mfalse[0m
  in case of a bounded manifold.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(4);;[0m
    [22m[35m gap> SCIsEulerianManifold(c);[0m
    [22m[35m true[0m
    [22m[35m gap> moebius:=SCLib.Load(6); # a moebius strip[0m
    [22m[35m gap> SCIsEulerianManifold(moebius);[0m
    [22m[35m false[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-31 SCIsHomologySphere[0m
  
  [1m[34m> SCIsHomologySphere( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m or [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks, whether the [22m[34mcomplex[0m given is a homology sphere, or not.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[2,3],[3,4],[4,2]]);;[0m
    [22m[35m gap> SCIsHomologySphere(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-32 SCIsInKd[0m
  
  [1m[34m> SCIsInKd( [0m[22m[34mcomplex, k[0m[1m[34m ) ___________________________________________[0mfunction
  [1mReturns:[0m  an integer upon success, [22m[32mfail[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
  [1m[34mSCIsKStackedSphere[0m  ([1m6.2-5[0m)  for  all  links.  Please  note  that  this is a
  radomized  algorithm  that  may  give an indefinite answer to the membership
  problem.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("S^2~S^1");   [0m
    [22m[35m [ [ 14, "S^2~S^1 (VT)" ], [ 29, "S^2~S^1 (VT)" ], [ 34, "S^2~S^1 (VT)" ], [0m
    [22m[35m   [ 42, "S^2~S^1 (VT)" ], [ 48, "S^2~S^1 (VT)" ], [ 49, "S^2~S^1 (VT)" ], [0m
    [22m[35m   [ 84, "S^2~S^1 (VT)" ], [ 87, "S^2~S^1 (VT)" ], [ 90, "(S^2~S^1)#2" ], ...[0m
    [22m[35m gap> c:=SCLib.Load(14);;[0m
    [22m[35m gap> c.AutomorphismGroup;[0m
    [22m[35m D18[0m
    [22m[35m gap> SCIsInKd(c,1);[0m
    [22m[35m #I  SCIsInKd: checking link 1/9[0m
    [22m[35m #I  SCIsKStackedSphere: try 1/50[0m
    [22m[35m round 0: [ 7, 15, 10 ][0m
    [22m[35m round 1: [ 6, 12, 8 ][0m
    [22m[35m round 2: [ 5, 9, 6 ][0m
    [22m[35m round 3: [ 4, 6, 4 ][0m
    [22m[35m Computed locally minimal complex after 4 rounds.[0m
    [22m[35m #I  SCIsInKd: complex has transitive automorphism group, all links are [0m
    [22m[35m 1-stacked.[0m
    [22m[35m 1[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-33 SCIsKNeighborly[0m
  
  [1m[34m> SCIsKNeighborly( [0m[22m[34mcomplex, k[0m[1m[34m ) ____________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");   [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2_6:=SCLib.Load(3);;[0m
    [22m[35m gap> SCFVector(rp2_6);[0m
    [22m[35m [6, 15, 10][0m
    [22m[35m gap> SCIsKNeighborly(rp2_6,2);[0m
    [22m[35m true[0m
    [22m[35m gap> SCIsKNeighborly(rp2_6,3);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-34 SCIsOrientable[0m
  
  [1m[34m> SCIsOrientable( [0m[22m[34mcomplex[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks, if a combinatorial pseudomanifold is orientable.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;[0m
    [22m[35m gap> SCIsOrientable(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-35 SCIsPseudoManifold[0m
  
  [1m[34m> SCIsPseudoManifold( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks, if every (d-1)-face of [22m[34mcomplex[0m is contained in exactly 2 facets.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m # Two 2-spheres glued together at [1][0m
    [22m[35m 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]]);;[0m
    [22m[35m gap> SCIsPseudoManifold(c);[0m
    [22m[35m true[0m
    [22m[35m # Two circles glued together a 1[0m
    [22m[35m gap> c:=SC([[1,2],[2,3],[3,1],[1,4],[4,5],[5,1]]);;[0m
    [22m[35m gap> SCIsPseudoManifold(c);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-36 SCIsPure[0m
  
  [1m[34m> SCIsPure( [0m[22m[34mcomplex[0m[1m[34m ) ______________________________________________[0mfunction
  [1mReturns:[0m  a  pair  of  the  form  [22m[32m[  integer,  boolean  ][0m upon success, [22m[32mfail[0m
            otherwise.
  
  Checks, if a simplicial complex is pure.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2], [1,4], [2,4], [2,3,4]]);;[0m
    [22m[35m gap> SCIsPure(c);[0m
    [22m[35m false[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2], [1,4], [2,4]]);;[0m
    [22m[35m gap> SCIsPure(c);[0m
    [22m[35m true[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-37 SCIsShellable[0m
  
  [1m[34m> SCIsShellable( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  Checks,  if  a  bounded  simplical complex is shellable. See [Z95], [P87] to
  learn more about shellings.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;       [0m
    [22m[35m gap> c:=Difference(c,SC([[1,3,5,7]]));; # bounded version[0m
    [22m[35m gap> SCIsShellable(c);[0m
    [22m[35m true[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-38 SCIsStronglyConnected[0m
  
  [1m[34m> SCIsStronglyConnected( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m # Two 2-spheres, glued along [1][0m
    [22m[35m 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]]);[0m
    [22m[35m gap> SCIsConnected(c);        [0m
    [22m[35m true[0m
    [22m[35m gap> SCIsStronglyConnected(c);                                                [0m
    [22m[35m false[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-39 SCMinimalNonFaces[0m
  
  [1m[34m> SCMinimalNonFaces( [0m[22m[34mcomplex[0m[1m[34m ) _____________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[0m otherwise.
  
  Computes  all missing proper faces of [22m[34mcomplex[0m by calling [1m[34mSCMinimalNonFacesEx[0m
  ([1m4.5-40[0m). The simplices are returned in the original labeling of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromFacets(["abc","abd"]);;[0m
    [22m[35m gap> SCMinimalNonFaces(c);           [0m
    [22m[35m [ [  ], [ "cd" ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-40 SCMinimalNonFacesEx[0m
  
  [1m[34m> SCMinimalNonFacesEx( [0m[22m[34mcomplex[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a list of face lists upon success, [22m[32mfail[0m otherwise.
  
  Computes  all missing proper faces of [22m[34mcomplex[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 [22m[34mcomplex[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 [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2"); [0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> SCFVector(torus);[0m
    [22m[35m [7, 21, 14][0m
    [22m[35m gap> SCMinimalNonFacesEx(torus);[0m
    [22m[35m [ [  ], [  ] ][0m
    [22m[35m gap> SCMinimalNonFacesEx(SCBdCrossPolytope(4));[0m
    [22m[35m [ [  ], [  ], [0m
    [22m[35m   [ [ 1 .. 3 ], [ 1, 2, 4 ], [ 1, 2, 5 ], [ 1, 2, 6 ], [ 1, 2, 7 ], [0m
    [22m[35m     [ 1, 2, 8 ], [ 1, 3, 4 ], [ 1, 5, 6 ], [ 1, 7, 8 ], [ 2, 3, 4 ], [0m
    [22m[35m     [ 2, 5, 6 ], [ 2, 7, 8 ], [ 3, 4, 5 ], [ 3, 4, 6 ], [ 3, 4, 7 ], [0m
    [22m[35m     [ 3, 4, 8 ], [ 3, 5, 6 ], [ 3, 7, 8 ], [ 4, 5, 6 ], [ 4, 7, 8 ], [0m
    [22m[35m     [ 5, 6, 7 ], [ 5, 6, 8 ], [ 5, 7, 8 ], [ 6, 7, 8 ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-41 SCName[0m
  
  [1m[34m> SCName( [0m[22m[34mcomplex[0m[1m[34m ) ________________________________________________[0mfunction
  [1mReturns:[0m  a string upon success, [22m[32mfail[0m otherwise.
  
  Returns the name of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(5);;[0m
    [22m[35m gap> SCName(c);[0m
    [22m[35m "S^4_6"[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2],[2,3],[3,1]]);;[0m
    [22m[35m gap> SCName(c);[0m
    [22m[35m "unnamed complex n"[0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-42 SCNeighborliness[0m
  
  [1m[34m> SCNeighborliness( [0m[22m[34mcomplex[0m[1m[34m ) ______________________________________[0mfunction
  [1mReturns:[0m  a positive integer upon success, [22m[32mfail[0m otherwise.
  
  Returns  k if a simplicial complex is k-neighborly but not (k+1)-neighborly.
  See also [1m[34mSCIsKNeighborly[0m ([1m4.5-33[0m)
  Note, that every complex is at least 1-neighborly.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(4);;[0m
    [22m[35m gap> SCNeighborliness(c);[0m
    [22m[35m 4[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;[0m
    [22m[35m gap> SCNeighborliness(c);[0m
    [22m[35m 1[0m
    [22m[35m gap> SCLib.SearchByAttribute("F[3]=Binomial(F[1],3)");[0m
    [22m[35m [ [ 10, "S^5 (VT)" ], [ 17, "CP^2 (VT)" ], [ 18, "S^5 (VT)" ], [0m
    [22m[35m   [ 38, "S^5 (VT)" ], [ 39, "S^6 (VT)" ], [ 40, "S^7 (VT)" ], [0m
    [22m[35m   [ 53, "S^5 (VT)" ], [ 54, "S^5 (VT)" ], [ 55, "S^7 (VT)" ], ... [0m
    [22m[35m gap> cp2:=SCLib.Load(17);;[0m
    [22m[35m gap> SCNeighborliness(cp2);[0m
    [22m[35m 3[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-43 SCOrientation[0m
  
  [1m[34m> SCOrientation( [0m[22m[34mcomplex[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  a list of the type pm 1 ^f_d / [22m[32m[ ][0m upon success, [22m[32mfail[0m otherwise.
  
  This  function  tries to compute an orientation of a pure simplicial complex
  that  fulfills  the  pseudomanifold  property.  If [22m[34mcomplex[0m is orientable, an
  orientation  in  form of a list of orientations for the facets of [22m[34mcomplex[0m is
  returned, otherwise an empty set.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;[0m
    [22m[35m gap> SCOrientation(c);[0m
    [22m[35m [ 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, 1 ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-44 SCSkel[0m
  
  [1m[34m> SCSkel( [0m[22m[34mcomplex, dim[0m[1m[34m ) ___________________________________________[0mfunction
  [1mReturns:[0m  a face list upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  [22m[34mdim[0m-skeleton  of  a simplcial complex, i. e. all [22m[34mdim[0m-faces of
  [22m[34mcomplex[0m,  if  [22m[34mdim[0m  is  an  integer  value.  If  [22m[34mdim[0m is a list, a list of all
  [22m[34mdim[0m[22m[32m[i][0m-faces  of  [22m[34mcomplex[0m for each entry [22m[34mdim[0m[22m[32m[i][0m (which has to be an integer)
  is returned. The faces are returned in the original labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2"); [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2_6:=SCLib.Load(3);;      [0m
    [22m[35m gap> rp2_6:=SC(rp2_6.Facets+10);;[0m
    [22m[35m gap> SCSkelEx(rp2_6,1);[0m
    [22m[35m [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0m
    [22m[35m   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0m
    [22m[35m   [ 5, 6 ] ][0m
    [22m[35m gap> SCSkel(rp2_6,1);  [0m
    [22m[35m [ [ 11, 12 ], [ 11, 13 ], [ 11, 14 ], [ 11, 15 ], [ 11, 16 ], [ 12, 13 ], [0m
    [22m[35m   [ 12, 14 ], [ 12, 15 ], [ 12, 16 ], [ 13, 14 ], [ 13, 15 ], [ 13, 16 ], [0m
    [22m[35m   [ 14, 15 ], [ 14, 16 ], [ 15, 16 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-45 SCSkelEx[0m
  
  [1m[34m> SCSkelEx( [0m[22m[34mcomplex, dim[0m[1m[34m ) _________________________________________[0mfunction
  [1mReturns:[0m  a face list upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  [22m[34mdim[0m-skeleton  of  a simplcial complex, i. e. all [22m[34mdim[0m-faces of
  [22m[34mcomplex[0m,  if  [22m[34mdim[0m  is  an  integer  value.  If  [22m[34mdim[0m is a list, a list of all
  [22m[34mdim[0m[22m[32m[i][0m-faces  of  [22m[34mcomplex[0m for each entry [22m[34mdim[0m[22m[32m[i][0m (which has to be an integer)
  is returned. The faces are returned in the standard labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2"); [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2_6:=SCLib.Load(3);;      [0m
    [22m[35m gap> rp2_6:=SC(rp2_6.Facets+10);;[0m
    [22m[35m gap> SCSkelEx(rp2_6,1);[0m
    [22m[35m [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 2, 3 ], [ 2, 4 ], [0m
    [22m[35m   [ 2, 5 ], [ 2, 6 ], [ 3, 4 ], [ 3, 5 ], [ 3, 6 ], [ 4, 5 ], [ 4, 6 ], [0m
    [22m[35m   [ 5, 6 ] ][0m
    [22m[35m gap> SCSkel(rp2_6,1);  [0m
    [22m[35m [ [ 11, 12 ], [ 11, 13 ], [ 11, 14 ], [ 11, 15 ], [ 11, 16 ], [ 12, 13 ], [0m
    [22m[35m   [ 12, 14 ], [ 12, 15 ], [ 12, 16 ], [ 13, 14 ], [ 13, 15 ], [ 13, 16 ], [0m
    [22m[35m   [ 14, 15 ], [ 14, 16 ], [ 15, 16 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-46 SCSpanningTree[0m
  
  [1m[34m> SCSpanningTree( [0m[22m[34mcomplex[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  a spanning tree of [22m[34mcomplex[0m upon success, [22m[32mfail[0m otherwise.
  
  Computes  a  spanning  tree  of [22m[34mcomplex[0m which must be a connected simplicial
  complex   with   a   greedy   algorithm   and   returns  it  in  form  of  a
  [22m[32mSCSimplicialComplex[0m object.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([["a","b","c"],["a","b","d"], ["a","c","d"], ["b","c","d"]]);;[0m
    [22m[35m gap> s:=SCSpanningTree(c);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="spanning tree of unnamed complex n"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> s.Facets;[0m
    [22m[35m [ [ "a", "b" ], [ "a", "c" ], [ "a", "d" ] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-47 SCVertices[0m
  
  [1m[34m> SCVertices( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a list of vertex labels upon success, [22m[32mfail[0m otherwise.
  
  Returns vertex labels.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> sphere:=SC([["x",45,[1,1]],["x",45,["b",3]],["x",[1,1],[0m
    [22m[35m   ["b",3]],[45,[1,1],["b",3]]]);;[0m
    [22m[35m gap> SCVerticesEx(sphere);[0m
    [22m[35m [1, 2, 3, 4][0m
    [22m[35m gap> SCVertices(sphere);[0m
    [22m[35m [ 45, [ 1, 1 ], "x", [ "b", 3 ] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.5-48 SCVerticesEx[0m
  
  [1m[34m> SCVerticesEx( [0m[22m[34mcomplex[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  [ 1, ... , n ] upon success, [22m[32mfail[0m otherwise.
  
  Returns [1, ... , n ], where n is the number of vertices of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,4,5],[4,9,8],[12,13,14,15,16,17]]);;[0m
    [22m[35m gap> SCVerticesEx(c);[0m
    [22m[35m [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m4.6 Operations on simplicial complexes[0m
  
  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.
  
  [1m[4m[31m4.6-1 SCAlexanderDual[0m
  
  [1m[34m> SCAlexanderDual( [0m[22m[34mcomplex[0m[1m[34m ) _______________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  The  Alexander dual of [22m[34mcomplex[0m is the simplicial complex whose faces are the
  complements of the nonfaces of [22m[34mcomplex[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m # a square[0m
    [22m[35m gap> c:=SC([[1,2],[2,3],[3,4],[4,1]]);;[0m
    [22m[35m gap> dual:=SCAlexanderDual(c);;[0m
    [22m[35m gap> dual.F;[0m
    [22m[35m [4, 2][0m
    [22m[35m gap> dual.IsConnected;[0m
    [22m[35m false[0m
    [22m[35m gap> dual.Facets;[0m
    [22m[35m [[1, 3], [2, 4]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-2 SCCollapseGreedy[0m
  
  [1m[34m> SCCollapseGreedy( [0m[22m[34mcomplex[0m[1m[34m ) ______________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Employs  a  greedy  collapsing  algorithm  in order to collapse [22m[34mcomplex[0m. The
  source code of this function is taken from [ManifoldPage].
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2"); [0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ... [0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m gap> torus:=SCLib.Load(5);;                             [0m
    [22m[35m gap> bdtorus:=SCDifference(torus,SC([torus.Facets[1]]));;[0m
    [22m[35m gap> coll:=SCCollapseGreedy(bdtorus);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="collapsed version of T^2 (VT) \ unnamed complex n"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> coll.Facets;[0m
    [22m[35m [ [ 3, 6 ], [ 3, 7 ], [ 5, 6 ], [ 5, 7 ], [ 6, 7 ] ][0m
    [22m[35m gap> sphere:=SCBdSimplex(4);;                              [0m
    [22m[35m gap> bdsphere:=SCDifference(sphere,SC([sphere.Facets[1]]));;[0m
    [22m[35m gap> coll:=SCCollapseGreedy(bdsphere);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="collapsed version of S^3_5 \ unnamed complex n"[0m
    [22m[35m  Dim=0[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> coll.Facets;                     [0m
    [22m[35m [ [ 5 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-3 SCCone[0m
  
  [1m[34m> SCCone( [0m[22m[34m[0m[1m[34m ) _______________________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[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).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^3");[0m
    [22m[35m [ [ 45, "RP^3" ], [ 103, "RP^3=L(2,1) (VT)" ], [ 246, "(S^2~S^1)#RP^3" ], [0m
    [22m[35m   [ 247, "(S^2xS^1)#RP^3" ], [ 283, "(S^2~S^1)#2#RP^3" ], [0m
    [22m[35m   [ 285, "(S^2xS^1)#2#RP^3" ], [ 409, "RP^3#RP^3" ], ...[0m
    [22m[35m gap> rp3:=SCLib.Load(45);;[0m
    [22m[35m gap> rp3.F;[0m
    [22m[35m [11, 51, 80, 40][0m
    [22m[35m gap> cone:=SCCone(rp3);;[0m
    [22m[35m gap> cone.F;[0m
    [22m[35m [12, 62, 131, 120, 40][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-4 SCDeletedJoin[0m
  
  [1m[34m> SCDeletedJoin( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) ______________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Calculates  the simplicial deleted join of the simplicial complexes [22m[34mcomplex1[0m
  and  [22m[34mcomplex2[0m.  Internally  falls  back  to  the [1mhomology[0m package [DH+04] if
  called with a facet list and does not interfere with the [1mhomology[0m package.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> deljoin:=SCDeletedJoin(SCBdSimplex(3),SCBdSimplex(3));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^2_4 deljoin S^2_4"[0m
    [22m[35m  Dim=3[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> bddeljoin:=SCBoundary(deljoin);;[0m
    [22m[35m gap> bddeljoin.Homology;[0m
    [22m[35m [ [ 1, [  ] ], [ 0, [  ] ], [ 2, [  ] ] ][0m
    [22m[35m gap> deljoin.Facets;[0m
    [22m[35m [ [ [ 1, 1 ], [ 2, 1 ], [ 3, 1 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 1 ], [ 3, 2 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 1 ], [ 3, 2 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 2 ], [ 3, 1 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 2 ], [ 3, 1 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 2 ], [ 3, 2 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 2 ], [ 3, 2 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 1 ], [ 3, 1 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 1 ], [ 3, 1 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 1 ], [ 3, 2 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 2 ], [ 3, 1 ], [ 4, 1 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 2 ], [ 3, 1 ], [ 4, 2 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 2, 2 ], [ 3, 2 ], [ 4, 1 ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-5 SCDifference[0m
  
  [1m[34m> SCDifference( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _______________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Forms  the  ``difference'' of two simplicial complexes [22m[34mcomplex1[0m and [22m[34mcomplex2[0m
  as  the  simplicial complex formed by the difference of the face lattices of
  [22m[34mcomplex1[0m  minus  [22m[34mcomplex2[0m.  The two arguments are not altered. Note: for the
  difference  process  the  vertex  labelings  of the complexes are taken into
  account,     see    also    [1m[34mOperation    Difference    (SCSimplicialComplex,
  SCSimplicialComplex)[0m ([1m3.3-10[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;[0m
    [22m[35m gap> d:=SC([[1,2,3]]);;[0m
    [22m[35m gap> disc:=SCDifference(c,d);;[0m
    [22m[35m gap> disc.Facets;[0m
    [22m[35m [ [ 1, 2, 4 ], [ 1, 3, 4 ], [ 2, 3, 4 ] ][0m
    [22m[35m gap> empty:=SCDifference(d,c);;[0m
    [22m[35m gap> empty.Dim;[0m
    [22m[35m -1[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-6 SCHandleAddition[0m
  
  [1m[34m> SCHandleAddition( [0m[22m[34mcomplex, f1, f2[0m[1m[34m ) ______________________________[0mfunction
  [1mReturns:[0m  simplicial  complex  obtained by identifying the vertices of facet
            [22m[34mf1[0m with the ones of facet [22m[34mf2[0m in [22m[34mcomplex[0m. [22m[32mfail[0m upon an error.
  
  A  combinatorial  handle  addition is possible, whenever we have d(v,w) >= 3
  for  any  two  vertices v in[22m[34mf1[0m and w in[22m[34mf2[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,4],[2,4,5],[2,3,5],[3,5,6],[1,3,6],[1,4,6]]);;[0m
    [22m[35m gap> c:=SCUnion(c,SCUnion(SCCopy(c)+3,SCCopy(c)+6));;[0m
    [22m[35m gap> c:=SCUnion(c,SC([[1,2,3],[10,11,12]]));;[0m
    [22m[35m gap> c.Facets;[0m
    [22m[35m [[1, 2, 3], [1, 2, 4], [1, 3, 6], [1, 4, 6], [2, 3, 5],[0m
    [22m[35m   [2, 4, 5], [3, 5, 6], [4, 5, 7], [4, 6, 9], [4, 7, 9],[0m
    [22m[35m   [5, 6, 8], [5, 7, 8], [6, 8, 9], [7, 8, 10], [7, 9, 12],[0m
    [22m[35m   [7, 10, 12], [8, 9, 11], [8, 10, 11], [9, 11, 12], [10, 11, 12]][0m
    [22m[35m gap> c.Homology;[0m
    [22m[35m [[0, []], [0, []], [1, []]][0m
    [22m[35m gap> torus:=SCHandleAddition(c,[1,2,3],[10,11,12]);;[0m
    [22m[35m gap> torus.Homology;[0m
    [22m[35m [[0, []], [2, []], [1, []]][0m
    [22m[35m gap> ism:=SCIsManifold(torus);;[0m
    [22m[35m gap> ism;[0m
    [22m[35m true[0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-7 SCIntersection[0m
  
  [1m[34m> SCIntersection( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _____________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Forms the ``intersection'' of two simplicial complexes [22m[34mcomplex1[0m and [22m[34mcomplex2[0m
  as the simplicial complex formed by the intersection of the face lattices of
  [22m[34mcomplex1[0m  and  [22m[34mcomplex2[0m.  The  two  arguments are not altered. Note: for the
  intersection  process  the  vertex labelings of the complexes are taken into
  account.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(3);;        [0m
    [22m[35m gap> d:=SCBdSimplex(3)+1;;      [0m
    [22m[35m gap> d.Facets;[0m
    [22m[35m [ [ 2, 3, 4 ], [ 2, 3, 5 ], [ 2, 4, 5 ], [ 3, 4, 5 ] ][0m
    [22m[35m gap> c:=SCBdSimplex(3);;  [0m
    [22m[35m gap> d:=SCBdSimplex(3);;  [0m
    [22m[35m gap> d:=SCMove(d,[[1,2,3],[]])+1;;[0m
    [22m[35m gap> s1:=SCIntersection(c,d);;[0m
    [22m[35m gap> s1.Facets;               [0m
    [22m[35m [ [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-8 SCIsIsomorphic[0m
  
  [1m[34m> SCIsIsomorphic( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _____________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m / [22m[32mfalse[0m upon success, [22m[32mfail[0m otherwise.
  
  [22m[32mtrue[0m  is  returned, if [22m[34mcomplex1[0m and [22m[34mcomplex2[0m are combinatorially isomorphic,
  [22m[32mfalse[0m if not.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0m
    [22m[35m gap> c2:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCIsIsomorphic(c1,c2);[0m
    [22m[35m true[0m
    [22m[35m gap> c3:=SCBdCrossPolytope(3);;[0m
    [22m[35m gap> SCIsIsomorphic(c1,c3);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-9 SCIsSubcomplex[0m
  
  [1m[34m> SCIsSubcomplex( [0m[22m[34msc1, sc2[0m[1m[34m ) _______________________________________[0mfunction
  [1mReturns:[0m  [22m[32mtrue[0m  if  [22m[34mcomplex1[0m  and  [22m[34mcomplex2[0m  are combinatorially isomorphic,
            [22m[32mfalse[0m otherwise.
  
  Returns  [22m[32mtrue[0m if [22m[34msc2[0m is a subcomplex of [22m[34msc1[0m, [22m[32mfalse[0m otherwise. If dim([22m[34msc2[0m) <=
  dim([22m[34msc1[0m)  the  facets of [22m[34msc2[0m are compared with the dim([22m[34msc2[0m)-skeleton of [22m[34msc1[0m.
  Only works for pure simplicial complexes.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByAttribute("F[1]=10");[0m
    [22m[35m [ [ 19, "K^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 21, "S^3 (VT)" ], [0m
    [22m[35m   [ 22, "(T^2)#2" ], [ 23, "S^3 (VT)" ], [ 24, "S^2xS^1 (VT)" ], [0m
    [22m[35m   [ 25, "S^3 (VT)" ], [ 26, "S^4 (VT)" ], [ 27, "(T^2)#3" ], ...[0m
    [22m[35m gap> t2:=SCLib.Load(20);;[0m
    [22m[35m gap> c:=SCBdSimplex(9);;[0m
    [22m[35m gap> t2.F;[0m
    [22m[35m [10, 30, 20][0m
    [22m[35m gap> c.F;[0m
    [22m[35m [10, 45, 120, 210, 252, 210, 120, 45, 10][0m
    [22m[35m gap> SCIsSubcomplex(c,t2);[0m
    [22m[35m true[0m
    [22m[35m gap> SCIsSubcomplex(t2,c);[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-10 SCIsomorphism[0m
  
  [1m[34m> SCIsomorphism( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) ______________________________[0mfunction
  [1mReturns:[0m  a list of pairs of vertex labels upon success, [22m[32mfail[0m otherwise.
  
  Returns  an  isomorphism of [22m[34mcomplex1[0m to [22m[34mcomplex2[0m in the original labeling if
  they  are  combinatorially  isomorphic,  [22m[32mfalse[0m  otherwise.  Internally calls
  [1m[34mSCIsomorphismEx[0m ([1m4.6-11[0m)[22m[32m(complex1,complex2);[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0m
    [22m[35m gap> c2:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCIsomorphism(c1,c2);[0m
    [22m[35m [ [ 11, 1 ], [ 12, 2 ], [ 13, 3 ], [ 14, 4 ] ][0m
    [22m[35m gap> SCIsomorphismEx(c1,c2);[0m
    [22m[35m [ [ [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 4, 4 ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-11 SCIsomorphismEx[0m
  
  [1m[34m> SCIsomorphismEx( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) ____________________________[0mfunction
  [1mReturns:[0m  a list of pairs of vertex labels upon success, [22m[32mfail[0m otherwise.
  
  Returns  an  isomorphism of [22m[34mcomplex1[0m to [22m[34mcomplex2[0m in the standard labeling if
  they  are  combinatorially  isomorphic,  [22m[32mfalse[0m  otherwise.  If  f-vector and
  Altshuler-Steinberg   determinant   are   equal,   the   internal   function
  [22m[32mSCIntFunc.SCComputeIsomorphismsEx"(complex1,complex2,true)[0m is called.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c1:=SC([[11,12,13],[11,12,14],[11,13,14],[12,13,14]]);;[0m
    [22m[35m gap> c2:=SCBdSimplex(3);;[0m
    [22m[35m gap> SCIsomorphism(c1,c2);[0m
    [22m[35m [ [ 11, 1 ], [ 12, 2 ], [ 13, 3 ], [ 14, 4 ] ][0m
    [22m[35m gap> SCIsomorphismEx(c1,c2);[0m
    [22m[35m [ [ [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 4, 4 ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-12 SCJoin[0m
  
  [1m[34m> SCJoin( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) _____________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Calculates  the  simplicial  join  of  the simplicial complexes [22m[34mcomplex1[0m and
  [22m[34mcomplex2[0m. Internally falls back to the homology package [DH+04] 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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> sphere:=SCJoin(SCBdSimplex(2),SCBdSimplex(2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^1_3 join S^1_3"[0m
    [22m[35m  Dim=3[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCHasBoundary(sphere);[0m
    [22m[35m false[0m
    [22m[35m gap> sphere.Facets;[0m
    [22m[35m [ [ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 2, 2 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 1, 2 ], [ 2, 2 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 1, 3 ], [ 2, 1 ], [ 2, 2 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 1, 3 ], [ 2, 1 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 1, 3 ], [ 2, 2 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 1, 3 ], [ 2, 1 ], [ 2, 2 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 1, 3 ], [ 2, 1 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 2 ], [ 1, 3 ], [ 2, 2 ], [ 2, 3 ] ] ][0m
    [22m[35m gap> sphere.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ], [ 1, [  ] ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> ball:=SCJoin(SC([[1]]),SCBdSimplex(2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n join S^1_3"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> ball.Homology;[0m
    [22m[35m [ [ 0, [  ] ], [ 0, [  ] ], [ 0, [  ] ] ][0m
    [22m[35m gap> ball.Facets;[0m
    [22m[35m [ [ [ 1, 1 ], [ 2, 1 ], [ 2, 2 ] ], [ [ 1, 1 ], [ 2, 1 ], [ 2, 3 ] ],[0m
    [22m[35m   [ [ 1, 1 ], [ 2, 2 ], [ 2, 3 ] ] ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-13 SCLink[0m
  
  [1m[34m> SCLink( [0m[22m[34mcomplex, face[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  link  of  [22m[34mface[0m  in [22m[34mcomplex[0m, i. e. all facets containing [22m[34mface[0m,
  reduced  by  [22m[34mface[0m. if [22m[34mcomplex[0m is pure, the resulting complex is of dimension
  dim([22m[34mcomplex[0m) - dim([22m[34mface[0m) -1.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");     [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2:=SCLib.Load(3);;[0m
    [22m[35m gap> SCVertices(rp2);[0m
    [22m[35m [1, 2, 3, 4, 5, 6][0m
    [22m[35m gap> SCLink(rp2,[1]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m[0m
    [22m[35m Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m Name="unnamed complex n"[0m
    [22m[35m Dim=1[0m
    [22m[35m[0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> last.Facets;[0m
    [22m[35m [[2, 3], [2, 6], [3, 5], [4, 5], [4, 6]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-14 SCLinks[0m
  
  [1m[34m> SCLinks( [0m[22m[34mcomplex, dim[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a list of new simplicial complexes upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  link of all [22m[34mdim[0m-faces in [22m[34mcomplex[0m and stores them in a list of
  simplicial complexes. Internally calls [1m[34mSCLink[0m ([1m4.6-13[0m) for every face.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdSimplex(4);;[0m
    [22m[35m # all vertex links -> 2 spheres[0m
    [22m[35m gap> SCLinks(c,0);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="lk([ 1 ]) in S^3_5"[0m
    [22m[35m      Dim=2[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex], # ... etc [0m
    [22m[35m][0m
    [22m[35m # all edge links -> circles[0m
    [22m[35m gap> SCLinks(c,1);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="lk([ 1, 2 ]) in S^3_5"[0m
    [22m[35m      Dim=1[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex], # ... etc[0m
    [22m[35m ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-15 SCNeighbors[0m
  
  [1m[34m> SCNeighbors( [0m[22m[34mcomplex, face[0m[1m[34m ) _____________________________________[0mfunction
  [1mReturns:[0m  a list of faces upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  neighboring  faces  of a given [22m[34mface[0m in [22m[34mcomplex[0m. A neighboring
  face  is a face distinct from [22m[34mface[0m that must have the same dimension as [22m[34mface[0m
  and  intersect [22m[34mface[0m in a (d-1)-face, where [22m[34mface[0m is of dimensions d. The face
  is returned in original labeling.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCNeighbors(c,["a","d"]);[0m
    [22m[35m [ [ "a", "b" ], [ "a", "c" ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-16 SCNeighborsEx[0m
  
  [1m[34m> SCNeighborsEx( [0m[22m[34mcomplex, face[0m[1m[34m ) ___________________________________[0mfunction
  [1mReturns:[0m  a list of faces upon success, [22m[32mfail[0m otherwise.
  
  Computes  the  neighboring  faces  of  a  given [22m[34mface[0m in standard labeling in
  [22m[34mcomplex[0m.  A neighboring face is a face distinct from [22m[34mface[0m that must have the
  same  dimension as [22m[34mface[0m and intersect [22m[34mface[0m in a (d-1)-face, where [22m[34mface[0m is of
  dimensions d.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCFromFacets(Combinations(["a","b","c"],2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Chi, Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="unnamed complex n"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCLabels(c);[0m
    [22m[35m [ "a", "b", "c" ][0m
    [22m[35m gap> SCNeighborsEx(c,[1,2]);[0m
    [22m[35m [ [ 1, 3 ], [ 2, 3 ] ][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-17 SCShelling[0m
  
  [1m[34m> SCShelling( [0m[22m[34mcomplex[0m[1m[34m ) ____________________________________________[0mfunction
  [1mReturns:[0m  a  permuted  list  of  the  facets  of  [22m[34mcomplex[0m upon success, [22m[32mfail[0m
            otherwise.
  
  [22m[34mcomplex[0m must be a pure, strongly connected pseudomanifold with boundary.
  
  Internally  calls  [1m[34mSCShellingExt[0m  ([1m4.6-18[0m)[22m[32m(complex,false,[]);[0m. To learn more
  about shellings see [Z95], [P87].
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[1,2,4],[1,3,4]]);;[0m
    [22m[35m gap> SCShelling(c);[0m
    [22m[35m [[1, 2, 3], [1, 2, 4], [1, 3, 4]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-18 SCShellingExt[0m
  
  [1m[34m> SCShellingExt( [0m[22m[34msc, all, checkvector[0m[1m[34m ) ____________________________[0mfunction
  [1mReturns:[0m  a  list  of  permuted  lists  of the facets of [22m[34msc[0m of size 1 ([22m[34mall[0m =
            [22m[32mfalse[0m),  n  ([22m[34mall[0m  = [22m[32mtrue[0m) if [22m[34mcheckvector[0m is empty, [22m[32mtrue[0m / [22m[32mfalse[0m if
            [22m[34mcheckvector[0m is not empty, [22m[32mfail[0m upon an error.
  
  [22m[34msc[0m must be a pure, bounded, strongly connected combinatorial pseudomanifold.
  
  A  shelling  is an ordering on the facet list of [22m[34msc[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 [22m[34msc[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 [22m[34mcheckvector[0m the
  function tests whether it is a valid shelling or not.
  
  See [Z95], [P87] to learn more about shellings.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");                 [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2:=SCLib.Load(3);;                        [0m
    [22m[35m gap> rp2:=SCDifference(rp2,SC([rp2.Facets[1]]));; # bounded version[0m
    [22m[35m gap> all:=SCShellingExt(rp2,true,[]);;[0m
    [22m[35m gap> Size(all);                                  [0m
    [22m[35m 1488[0m
    [22m[35m gap> all[1];[0m
    [22m[35m [ [ 1, 2, 6 ], [ 1, 4, 6 ], [ 1, 4, 5 ], [ 1, 3, 5 ], [ 2, 4, 5 ], [0m
    [22m[35m   [ 2, 3, 4 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ] ][0m
    [22m[35m gap> all:=SCShellingExt(rp2,false,[]);[0m
    [22m[35m [ [ [1, 2, 6], [1, 4, 6], [1, 4, 5], [1, 3, 5], [0m
    [22m[35m     [2, 4, 5], [2, 3, 4], [2, 5, 6], [3, 4, 6], [3, 5, 6] 	] [0m
    [22m[35m ][0m
    [22m[35m # valid shelling[0m
    [22m[35m gap> all:=SCShellingExt(rp2,false,[4, 9, 3, 2, 5, 6, 7, 1, 8]);[0m
    [22m[35m true[0m
    [22m[35m gap> all:=SCShellingExt(rp2,true,[4, 9, 3, 2, 5, 6, 7, 1, 8]);[0m
    [22m[35m true[0m
    [22m[35m # invalid shelling[0m
    [22m[35m gap> all:=SCShellingExt(rp2,true,[1 .. 9]);[0m
    [22m[35m #I  SCShellingExt: 2 is not a valid shelling facet.[0m
    [22m[35m false[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-19 SCShellings[0m
  
  [1m[34m> SCShellings( [0m[22m[34mcomplex[0m[1m[34m ) ___________________________________________[0mfunction
  [1mReturns:[0m  a list of permuted versions of the facet list of [22m[34mcomplex[0m.
  
  Internally  calls  [1m[34mSCShellingExt[0m  ([1m4.6-18[0m)[22m[32m(complex,true,[]);[0m.  To learn more
  about shellings see [Z95], [P87].
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2,3],[1,2,4],[1,3,4]]);;[0m
    [22m[35m gap> SCShellings(c);[0m
    [22m[35m [[[1, 2, 3], [1, 2, 4], [1, 3, 4]],[0m
    [22m[35m   [[1, 2, 3], [1, 3, 4], [1, 2, 4]],[0m
    [22m[35m   [[1, 2, 4], [1, 2, 3], [1, 3, 4]],[0m
    [22m[35m   [[1, 3, 4], [1, 2, 3], [1, 2, 4]],[0m
    [22m[35m   [[1, 2, 4], [1, 3, 4], [1, 2, 3]],[0m
    [22m[35m   [[1, 3, 4], [1, 2, 4], [1, 2, 3]] [0m
    [22m[35m][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-20 SCSpan[0m
  
  [1m[34m> SCSpan( [0m[22m[34mcomplex, subset[0m[1m[34m ) ________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Computes the reduced face lattice of all faces that are a subset of [22m[34msubset[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCBdCrossPolytope(4);;[0m
    [22m[35m gap> SCVertices(c);[0m
    [22m[35m [1, 2, 3, 4, 5, 6, 7, 8][0m
    [22m[35m gap> span:=SCSpan(c,[1,2,3,4]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m[0m
    [22m[35m Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m Name="span([ 1, 2, 3, 4 ]) in Bd(\beta^4)"[0m
    [22m[35m Dim=1[0m
    [22m[35m[0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> span.Facets;[0m
    [22m[35m [[1, 3], [1, 4], [2, 3], [2, 4]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2],[1,4,5],[2,3,4]]);;[0m
    [22m[35m gap> span:=SCSpan(c,[2,3,5]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m[0m
    [22m[35m Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m Name="span([ 2, 3, 5 ]) in unnamed complex n"[0m
    [22m[35m Dim=1[0m
    [22m[35m[0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> SCFacets(span);[0m
    [22m[35m [[2, 3], [5]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-21 SCStar[0m
  
  [1m[34m> SCStar( [0m[22m[34mcomplex, face[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise .
  
  Computes  the  star  of  [22m[34mface[0m in [22m[34mcomplex[0m, i. e. the set of facets of [22m[34mcomplex[0m
  that contain [22m[34mface[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("RP^2");     [0m
    [22m[35m [ [ 3, "RP^2 (VT)" ], [ 284, "RP^2xS^1" ] ][0m
    [22m[35m gap> rp2:=SCLib.Load(3);;[0m
    [22m[35m gap> SCVertices(rp2);[0m
    [22m[35m [1, 2, 3, 4, 5, 6][0m
    [22m[35m gap> SCStar(rp2,[1]);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m  Name="star([ 1 ]) in RP^2 (VT)"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> last.Facets;[0m
    [22m[35m [[1, 2, 3], [1, 2, 6], [1, 3, 5], [1, 4, 5], [1, 4, 6]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-22 SCStars[0m
  
  [1m[34m> SCStars( [0m[22m[34mcomplex, dim[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a list of new simplicial complexes upon success, [22m[32mfail[0m otherwise.
  
  Computes for every [22m[34mdim[0m-face f the set of facets that contain f.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("T^2");[0m
    [22m[35m [ [ 5, "T^2 (VT)" ], [ 7, "T^2 (VT)" ], [ 11, "T^2 (VT)" ], [0m
    [22m[35m   [ 12, "T^2 (VT)" ], [ 20, "T^2 (VT)" ], [ 22, "(T^2)#2" ], [0m
    [22m[35m   [ 27, "(T^2)#3" ], [ 41, "T^2 (VT)" ], [ 44, "(T^2)#4" ], ...[0m
    [22m[35m # the minimal 7-vertex torus[0m
    [22m[35m gap> torus:=SCLib.Load(5);;[0m
    [22m[35m # 7 2-discs as vertex stars[0m
    [22m[35m gap> SCStars(torus,0);[0m
    [22m[35m [ [SimplicialComplex[0m
    [22m[35m     [0m
    [22m[35m      Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m     [0m
    [22m[35m      Name="star([ 1 ]) in T^2 (VT)"[0m
    [22m[35m      Dim=2[0m
    [22m[35m     [0m
    [22m[35m     /SimplicialComplex], # ... etc[0m
    [22m[35m ][0m
    [22m[35m gap>[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-23 SCSuspension[0m
  
  [1m[34m> SCSuspension( [0m[22m[34mcomplex[0m[1m[34m ) __________________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Calculates  the  simplicial  suspension  of  the simplicial complex [22m[34mcomplex[0m.
  Internally falls back to the homology package [DH+04] 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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> SCLib.SearchByName("Poincare");[0m
    [22m[35m [ [ 563, "Poincare_sphere" ] ][0m
    [22m[35m gap> phs:=SCLib.Load(587);[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: AltshulerSteinberg, AutomorphismGroup, [0m
    [22m[35m                    AutomorphismGroupSize, AutomorphismGroupStructure, [0m
    [22m[35m                    AutomorphismGroupTransitivity, Boundary, Chi, [0m
    [22m[35m                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0m
    [22m[35m                    Generators, H, HasBoundary, HasInterior, Homology, [0m
    [22m[35m                    Interior, IsCentrallySymmetric, IsConnected, [0m
    [22m[35m                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0m
    [22m[35m                    MinimalNonFaces, Name, Neighborliness, Orientation, [0m
    [22m[35m                    StronglyConnected, VertexLabels, Vertices.[0m
    [22m[35m [0m
    [22m[35m  Name="B4"[0m
    [22m[35m  Dim=3[0m
    [22m[35m  AutomorphismGroupSize=1[0m
    [22m[35m  AutomorphismGroupStructure="1"[0m
    [22m[35m  AutomorphismGroupTransitivity=0[0m
    [22m[35m  Chi=0[0m
    [22m[35m  F=[ 17, 117, 200, 100 ][0m
    [22m[35m  G=[ 12, 59 ][0m
    [22m[35m  H=[ 13, 72, 13, 1 ][0m
    [22m[35m  HasBoundary=false[0m
    [22m[35m  HasInterior=true[0m
    [22m[35m  Homology=[ [ 0, [ ] ], [ 1, [ 4 ] ], [ 0, [ 2 ] ], [ 0, [ ] ] ][0m
    [22m[35m  IsCentrallySymmetric=false[0m
    [22m[35m  IsConnected=true[0m
    [22m[35m  IsEulerianManifold=true[0m
    [22m[35m  IsOrientable=false[0m
    [22m[35m  IsPM=true[0m
    [22m[35m  IsPure=true[0m
    [22m[35m  Neighborliness=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> phs:=SCLib.Load(587);;[0m
    [22m[35m gap> susp:=SCSuspension(phs);;[0m
    [22m[35m gap> edwardsSphere:=SCSuspension(susp);;[0m
    [22m[35m gap> SCIsManifold(edwardsSphere);[0m
    [22m[35m ...[0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-24 SCUnion[0m
  
  [1m[34m> SCUnion( [0m[22m[34mcomplex1, complex2[0m[1m[34m ) ____________________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[0m otherwise.
  
  Forms  the  union  of  two simplicial complexes [22m[34mcomplex1[0m and [22m[34mcomplex2[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  [1m[34mOperation  Union
  (SCSimplicialComplex, SCSimplicialComplex)[0m ([1m3.3-9[0m).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SCUnion(SCBdSimplex(3),SCBdSimplex(3)+3); #a wedge of two 2-spheres[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, VertexLabels.[0m
    [22m[35m[0m
    [22m[35m  Name="S^2_4 cup S^2_4"[0m
    [22m[35m  Dim=2[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-25 SCVertexIdentification[0m
  
  [1m[34m> SCVertexIdentification( [0m[22m[34mcomplex, v1, v2[0m[1m[34m ) ________________________[0mfunction
  [1mReturns:[0m  simplicial  complex  with  pinched  point [22m[34mv1[0m=[22m[34mv2[0m upon success, [22m[32mfail[0m
            otherwise.
  
  A  vertex  identification  of  [22m[34mv1[0m and [22m[34mv2[0m is possible whenever d([22m[34mv1[0m,[22m[34mv2[0m) >= 3.
  This is not checked by this algorithm.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> c:=SC([[1,2],[2,3],[3,4]]);;[0m
    [22m[35m gap> circle:=SCVertexIdentification(c,[1],[4]);;[0m
    [22m[35m gap> circle.Facets;[0m
    [22m[35m [[1, 2], [1, 3], [2, 3]][0m
    [22m[35m gap> circle.Homology;[0m
    [22m[35m [[0, []], [1, []]][0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m4.6-26 SCWedge[0m
  
  [1m[34m> SCWedge( [0m[22m[34mcomplex1, complex2, ...[0m[1m[34m ) _______________________________[0mfunction
  [1mReturns:[0m  a new simplicial complex upon success, [22m[32mfail[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.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m gap> wedge:=SCWedge(SCBdSimplex(2),SCBdSimplex(2));[0m
    [22m[35m [SimplicialComplex[0m
    [22m[35m [0m
    [22m[35m  Properties known: Dim, Facets, Name, VertexLabels.[0m
    [22m[35m [0m
    [22m[35m  Name="S^1_3 wedge S^1_3"[0m
    [22m[35m  Dim=1[0m
    [22m[35m [0m
    [22m[35m /SimplicialComplex][0m
    [22m[35m gap> wedge.Facets;[0m
    [22m[35m [ [ [ 1, 2 ], [ 1, 3 ] ], [ [ 2, 2 ], [ 2, 3 ] ], [ [ 1, 2 ], "a" ], [0m
    [22m[35m   [ [ 1, 3 ], "a" ], [ [ 2, 2 ], "a" ], [ [ 2, 3 ], "a" ] ][0m
    [22m[35m gap> [0m
    [22m[35m [0m
  [22m[35m------------------------------------------------------------------[0m
  
