  
  [1X12 Library and I/O[0X
  
  
  [1X12.1 Simplicial complex library[0X
  
  [5Xsimpcomp[0m contains a library of simplicial complexes on few vertices, most of
  them  (combinatorial)  triangulations  of manifolds and pseudomanifolds. The
  user  can load these known triangulations from the library in order to study
  their  properties  or to construct new triangulations out of the known ones.
  For  example,  a  user  could  determine  the  topological  type  of a given
  triangulation  --  which  can  be  quite  tedious  if  done  by  hand  -- by
  establishing a PL equivalence to a complex in the library.
  
  Among  other  known  triangulations,  the library contains all of the vertex
  transitive  triangulations of combinatorial manifolds with up to 15 vertices
  (for  d in { 2,3,9,10,11,12}) and up to 13 vertices (for d in { 4,5,6,7,8 })
  and all of the vertex transitive combinatorial pseudomanifolds with up to 15
  vertices  (for  d=3) and up to 13 vertices (for d in { 4,5,6,7 }) classified
  by   Frank   Lutz   that   can   be   found   on   his   ``Manifold   Page''
  [7Xhttp://www.math.tu-berlin.de/diskregeom/stellar/[0m,     along     with    some
  triangulations of sphere bundles and some bounded triangulated PL-manifolds.
  
  See  [2XSCLib[0m  ([14X12.1-2[0m)  for a naming convention used for the global library of
  [5Xsimpcomp[0m.
  
  [1X12.1-1 SCIsLibRepository[0m
  
  [2X> SCIsLibRepository( [0X[3Xobject[0X[2X ) ________________________________________[0Xfilter
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Filter  for  the  category of a library repository [10XSCIsLibRepository[0m used by
  the  [5Xsimpcomp[0m  library.  The  category  [10XSCLibRepository[0m  is derived from the
  category [10XSCPropertyObject[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCIsLibRepository(SCLib); #the global library is stored in SCLib[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-2 SCLib[0m
  
  [2X> SCLib______________________________________________________[0Xglobal variable
  
  The  global variable [10XSCLib[0m contains the library object of the global library
  of  [5Xsimpcomp[0m  through which the user can access the library. The path to the
  global library is [10XGAPROOT/pkg/simpcomp/complexes[0m.
  
  The  naming convention in the global library is the following: complexes are
  usually named by their topological type. As usual, `S^d' denotes a d-sphere,
  `T'  a torus, `x' the cartesian product, `~' the twisted product and `#' the
  connected sum. The Klein Bottle is denoted by `K' or `K^2'.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib;[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=7648[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/afs/.mathe/home/igt2/spreerjn/apps/gap4r4new/pkg/simpcomp/complexes/"[0X
    [4X ][0X
    [4X gap> SCLib.Size;[0X
    [4X 7648[0X
    [4X gap> SCLib.SearchByName("S^4~");[0X
    [4X [ [ 463, "S^4~S^1 (VT)" ], [ 1473, "S^4~S^1 (VT)" ], [ 1474, "S^4~S^1 (VT)" ],[0X
    [4X   [ 2477, "S^4~S^1 (VT)" ], [ 4395, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4396, "S^4~S^1 (VT)" ], [ 4397, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4398, "S^4~S^1 (VT)" ], [ 4399, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4402, "S^4~S^1 (VT)" ], [ 4403, "S^4~S^1 (VT)" ], [0X
    [4X   [ 4404, "S^4~S^1 (VT)" ] ][0X
    [4X gap> SCLib.Load(last[1][1]);          [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, ConnectedComponents, Dim, [0X
    [4X                    DualGraph, EulerCharacteristic, FVector, FacetsEx, [0X
    [4X                    GVector, HVector, HasBoundary, HasInterior, [0X
    [4X                    Homology, Interior, IsConnected, [0X
    [4X                    IsEulerianManifold, IsManifold, IsOrientable, [0X
    [4X                    IsPseudoManifold, IsPure, IsStronglyConnected, [0X
    [4X                    MinimalNonFacesEx, Name, Neighborliness, [0X
    [4X                    NumFaces[], Orientation, Reference, SkelExs[], [0X
    [4X                    Vertices.[0X
    [4X [0X
    [4X  Name="S^4~S^1 (VT)"[0X
    [4X  Dim=5[0X
    [4X  AltshulerSteinberg=2417917928025780[0X
    [4X  EulerCharacteristic=0[0X
    [4X  FVector=[ 13, 78, 195, 260, 195, 65 ][0X
    [4X  GVector=[ 6, 21, -35 ][0X
    [4X  HVector=[ 7, 28, -7, 28, 7, 1 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 1, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 0, [ 2 ] ], [ 0,\[0X
    [4X  [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=false[0X
    [4X  IsPseudoManifold=true[0X
    [4X  IsPure=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  Neighborliness=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-3 SCLibAdd[0m
  
  [2X> SCLibAdd( [0X[3Xrepository, complex[, name][0X[2X ) __________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Adds  a given simplicial complex [3Xcomplex[0m to a given repository [3Xrepository[0m of
  type  [10XSCIsLibRepository[0m.  [3Xcomplex[0m  is saved to a file with suffix [10X.sc[0m in the
  repositories  base  path,  where  the  file  name  is either formed from the
  optional  argument  [3Xname[0m  and the current time or taken from the name of the
  complex, if it is named.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/myrepository");[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=0[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/home/spreerjn/myrepository/"[0X
    [4X ][0X
    [4X gap> complex:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCLibAdd(myRepository,complex);[0X
    [4X #I  SCLibAdd: saving complex to file "complex_2011-06-01_15-57-55.sc".[0X
    [4X true[0X
    [4X gap> myRepository.Add(complex);; # alternative syntax[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-4 SCLibAllComplexes[0m
  
  [2X> SCLibAllComplexes( [0X[3Xrepository[0X[2X ) __________________________________[0Xfunction
  [6XReturns:[0X  list of entries of the form [10X[ integer, string ][0m upon success, [9Xfail[0m
            otherwise.
  
  Returns a list with entries of the form [10X[ ID, NAME ][0m of all the complexes in
  the given repository [3Xrepository[0m of type [10XSCIsLibRepository[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> all:=SCLibAllComplexes(SCLib);;[0X
    [4X gap> all[1];[0X
    [4X [ 1, "Moebius Strip" ][0X
    [4X gap> Length(all);[0X
    [4X 7648[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-5 SCLibDelete[0m
  
  [2X> SCLibDelete( [0X[3Xrepository, id[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Deletes  the  simplicial  complex  with  the  given  id  [3Xid[0m  from  the given
  repository  [3Xrepository[0m.  Apart from deleting the complexes' index entry, the
  associated [10X.sc[0m file is also deleted.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/myrepository");[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=2[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/home/spreerjn/myrepository/"[0X
    [4X ][0X
    [4X gap> SCLibDelete(myRepository,1);[0X
    [4X #I  SCLibDelete: file "/home/spreerjn/myrepository/complex_2011-06-01_15-57-55\[0X
    [4X .sc" does not exist.[0X
    [4X fail[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-6 SCLibDetermineTopologicalType[0m
  
  [2X> SCLibDetermineTopologicalType( [0X[3X[repository, ]complex[0X[2X ) ___________[0Xfunction
  [6XReturns:[0X  simplicial  complex  of  type  [10XSCSimplicialComplex[0m  or  a  list of
            integers upon success, [9Xfail[0m otherwise.
  
  Tries  to determine the topological type of a given complex [3Xcomplex[0m by first
  looking  for  complexes  with  matching  homology  in the library repository
  [3Xrepository[0m (if no repository is passed, the global repository [10XSCLib[0m is used)
  and  either  returns  a  simplicial  complex object (that is combinatorially
  isomorphic  to  the  complex given) or a list of library ids of complexes in
  the library with the same homology as the complex provided.
  
  The  ids  obtained in this way can then be used to compare the corresponding
  complexes with [3Xcomplex[0m via the function [2XSCEquivalent[0m ([14X9.2-2[0m).
  
  If  [3Xcomplex[0m  is a combinatorial manifold of dimension 1 or 2 its topological
  type  is  computed,  stored  to  the property [10XTopologicalType[0m and [3Xcomplex[0m is
  returned.
  
  If  no  complexes  with  matching  homology  can  be found, the empty set is
  returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets([[1,2,3],[1,2,6],[1,3,5],[1,4,5],[1,4,6],[0X
    [4X                       [2,3,4],[2,4,5],[2,5,6],[3,4,6],[3,5,6]]);;[0X
    [4X gap> SCLibDetermineTopologicalType(c);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, [0X
    [4X                    IsPseudoManifold, Name, SkelExs[], Vertices.[0X
    [4X [0X
    [4X  Name="unnamed complex 26"[0X
    [4X  Dim=2[0X
    [4X  HasBoundary=false[0X
    [4X  IsPseudoManifold=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-7 SCLibFlush[0m
  
  [2X> SCLibFlush( [0X[3Xrepository, confirm[0X[2X ) ________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Completely  empties  a  given  repository  [3Xrepository[0m.  The  index  and  all
  simplicial  complexes  in  this repository are deleted. The second argument,
  [3Xconfirm[0m, must be the string [10X"yes"[0m in order to confirm the deletion.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/repository");;[0X
    [4X gap> SCLibFlush(myRepository,"yes");[0X
    [4X #I  SCLibInit: invalid parameters.[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-8 SCLibInit[0m
  
  [2X> SCLibInit( [0X[3Xdir[0X[2X ) _________________________________________________[0Xfunction
  [6XReturns:[0X  library  repository  of  type  [10XSCLibRepository[0m  upon success, [9Xfail[0m
            otherwise.
  
  This  function  initializes  a  library  repository  object  for  the  given
  directory  [3Xdir[0m  (which  has  to  be provided in form of a [5XGAP[0m object of type
  [10XString[0m  or  [10XDirectory[0m) and returns that library repository object in case of
  success.  The  returned  object  then  provides a mean to access the library
  repository via the [10XSCLib[0m-functions of [5Xsimpcomp[0m.
  
  The global library repository of [5Xsimpcomp[0m is loaded automatically at startup
  and  is  stored  in  the variable [10XSCLib[0m. User repositories can be created by
  calling  [10XSCLibInit[0m  with  a  desired  destination  directory. Note that each
  repository  must  reside  in  a  different path since otherwise data may get
  lost.
  
  The  function  first  tries  to  load  the  repository  index  for the given
  directory to rebuild it (by calling [10XSCLibUpdate[0m) if loading the index fails.
  The  library index of a library repository is stored in its base path in the
  XML  file  [10Xcomplexes.idx[0m, the complexes are stored in files with suffix [10X.sc[0m,
  also in XML format.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/myrepository");[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=2[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/home/spreerjn/myrepository/"[0X
    [4X ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-9 SCLibIsLoaded[0m
  
  [2X> SCLibIsLoaded( [0X[3Xrepository[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon succes, [9Xfail[0m otherwise.
  
  Returns  [9Xtrue[0m when a given library repository [3Xrepository[0m is in loaded state.
  This  means  that  the  directory  of  this  repository  is accessible and a
  repository  index file for this repository exists in the repositories' path.
  If this is not the case [9Xfalse[0m is returned.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibIsLoaded(SCLib);[0X
    [4X true[0X
    [4X gap> SCLib.IsLoaded;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-10 SCLibSearchByAttribute[0m
  
  [2X> SCLibSearchByAttribute( [0X[3Xrepository, expr[0X[2X ) _______________________[0Xfunction
  [6XReturns:[0X  A list of items of the form [10X[ integer, string ][0m upon success, [9Xfail[0m
            otherwise.
  
  Searches  a  given repository [3Xrepository[0m for complexes for which the boolean
  expression  [3Xexpr[0m,  passed as string, evaluates to [9Xtrue[0m and returns a list of
  complexes  with  entries  of  the  form  [10X[ID,  NAME][0m or [9Xfail[0m upon error. The
  expression  may  use  all  [5XGAP[0m  functions  and  can  access  all the indexed
  attributes  of  the  complexes  in  the  given repository for the query. The
  standard  attributes  are:  Dim  (Dimension),  F (f-vector), G (g-vector), H
  (h-vector),  Chi  (Euler  characteristic), Homology, Name, IsPM, IsManifold.
  See  [10XSCLib[0m  for  the  set  of  indexed  attributes  of the global library of
  [5Xsimpcomp[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibSearchByAttribute(SCLib,"Dim=4 and F[3]=Binomial(F[1],3)");[0X
    [4X [ [ 16, "CP^2 (VT)" ], [ 7494, "K3 surface" ] ][0X
    [4X gap> SCLib.SearchByAttribute("Dim=4 and F[3]=Binomial(F[1],3)");[0X
    [4X [ [ 16, "CP^2 (VT)" ], [ 7494, "K3 surface" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-11 SCLibSearchByName[0m
  
  [2X> SCLibSearchByName( [0X[3Xrepository, name[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  A list of items of the form [10X[ integer, string ][0m upon success, [9Xfail[0m
            otherwise.
  
  Searches a given repository [3Xrepository[0m for complexes that contain the string
  [3Xname[0m  as  a  substring  of  their  name  attribute and returns a list of the
  complexes  found with entries of the form [10X[ID, NAME][0m. See [2XSCLib[0m ([14X12.1-2[0m) for
  a naming convention used for the global library of [5Xsimpcomp[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibSearchByName(SCLib,"K3");[0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> SCLib.SearchByName("K3"); #alternative syntax[0X
    [4X [ [ 7494, "K3 surface" ] ][0X
    [4X gap> SCLib.SearchByName("S^4x"); #search for products with S^4[0X
    [4X [ [ 713, "S^4xS^1 (VT)" ], [ 1472, "S^4xS^1 (VT)" ], [ 1475, "S^4xS^1 (VT)" ],[0X
    [4X   [ 7479, "S^4xS^2" ], [ 7540, "S^4xS^3" ], [ 7574, "S^4xS^4" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-12 SCLibSize[0m
  
  [2X> SCLibSize( [0X[3Xrepository[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  integer upon success, [9Xfail[0m otherwise.
  
  Returns   the   number  of  complexes  contained  in  the  given  repository
  [3Xrepository[0m.  Fails  if the library repository was not previously loaded with
  [10XSCLibInit[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibSize(SCLib); #SCLib is the repository of the global library[0X
    [4X 7648[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-13 SCLibUpdate[0m
  
  [2X> SCLibUpdate( [0X[3Xrepository[, recalc][0X[2X ) ______________________________[0Xfunction
  [6XReturns:[0X  library  repository  of  type  [10XSCLibRepository[0m  upon success, fail
            otherwise.
  
  Recreates the index of a given repository (either via a repository object or
  a  base  path  of a repository [3Xrepository[0m) by scanning the base path for all
  [10X.sc[0m  files  containing  simplicial  complexes  of  the repository. Returns a
  repository object with the newly created index on success or [9Xfail[0m in case of
  an  error. The optional boolean argument [3Xrecalc[0m forces [5Xsimpcomp[0m to recompute
  all  the  indexed  properties  (such  as  f-vector,  homology,  etc.) of the
  simplicial complexes in the repository if set to [9Xtrue[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/repository");;[0X
    [4X gap> SCLibUpdate(myRepository);[0X
    [4X #I  SCLibUpdate: rebuilding index for /home/spreerjn/repository/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=0[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/home/spreerjn/repository/"[0X
    [4X ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.1-14 SCLibStatus[0m
  
  [2X> SCLibStatus( [0X[3Xrepository[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  library  repository  of  type  [10XSCLibRepository[0m  upon success, [9Xfail[0m
            otherwise.
  
  Lets  [5XGAP[0m  print  the  status  of  a  given  library  repository [3Xrepository[0m.
  [10XIndexAttributes[0m  is  the  list of attributes indexed for this repository. If
  [10XCalculateIndexAttributes[0m  is  true, the index attributes for a complex added
  to  the  library  are calculated automatically upon addition of the complex,
  otherwise  this  is  left to the user and only pre-calculated attributes are
  indexed.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibStatus(SCLib);[0X
    [4X [Simplicial complex library. Properties:[0X
    [4X CalculateIndexAttributes=true[0X
    [4X Number of complexes in library=7648[0X
    [4X IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", [0X
    [4X   "IsManifold" ][0X
    [4X Loaded=true[0X
    [4X Path="/afs/.mathe/home/igt2/spreerjn/apps/gap4r4new/pkg/simpcomp/complexes/"[0X
    [4X ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X12.2 [5Xsimpcomp[1X input / output functions[0X
  
  This  section  contains  a  description  of  the  input/output-functionality
  provided  by  [5Xsimpcomp[0m.  The  package provides the functionality to save and
  load simplicial complexes (and their known properties) to, respectively from
  files  in  XML  format.  Furthermore, it provides the user with functions to
  export simplicial complexes into polymake format (for this format there also
  exists rudimentary import functionality), as JavaView geometry or in form of
  a  LaTeX  table.  For  importing  more  complex  polymake  data  the package
  polymaking [R\"07] can be used.
  
  [1X12.2-1 SCLoad[0m
  
  [2X> SCLoad( [0X[3Xfilename[0X[2X ) _______________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Loads  a simplicial complex stored in a binary format (using [10XIO_Pickle[0m) from
  a  file specified in [3Xfilename[0m (as string). If [3Xfilename[0m does not end in [10X.scb[0m,
  this suffix is appended to the file name.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCSave(c,"/tmp/bddelta3");[0X
    [4X true[0X
    [4X gap> d:=SCLoad("/tmp/bddelta3");[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupSize, [0X
    [4X                    AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Dim, [0X
    [4X                    EulerCharacteristic, FacetsEx, GeneratorsEx, [0X
    [4X                    HasBoundary, Homology, IsConnected, [0X
    [4X                    IsStronglyConnected, Name, NumFaces[], [0X
    [4X                    TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="S^2_4"[0X
    [4X  Dim=2[0X
    [4X  AutomorphismGroupSize=24[0X
    [4X  AutomorphismGroupStructure="S4"[0X
    [4X  AutomorphismGroupTransitivity=4[0X
    [4X  EulerCharacteristic=2[0X
    [4X  HasBoundary=false[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  TopologicalType="S^2"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c=d;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-2 SCLoadXML[0m
  
  [2X> SCLoadXML( [0X[3Xfilename[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Loads  a  simplicial  complex  stored in XML format from a file specified in
  [3Xfilename[0m  (as  string).  If  [3Xfilename[0m  does  not  end in [10X.sc[0m, this suffix is
  appended to the file name.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCSaveXML(c,"/tmp/bddelta3");[0X
    [4X true[0X
    [4X gap> d:=SCLoadXML("/tmp/bddelta3");[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupSize, [0X
    [4X                    AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Dim, [0X
    [4X                    EulerCharacteristic, FacetsEx, GeneratorsEx, [0X
    [4X                    HasBoundary, Homology, IsConnected, [0X
    [4X                    IsStronglyConnected, Name, NumFaces[], [0X
    [4X                    TopologicalType, Vertices.[0X
    [4X [0X
    [4X  Name="S^2_4"[0X
    [4X  Dim=2[0X
    [4X  AutomorphismGroupSize=24[0X
    [4X  AutomorphismGroupStructure="S4"[0X
    [4X  AutomorphismGroupTransitivity=4[0X
    [4X  EulerCharacteristic=2[0X
    [4X  HasBoundary=false[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ][0X
    [4X  IsConnected=true[0X
    [4X  IsStronglyConnected=true[0X
    [4X  TopologicalType="S^2"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c=d;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-3 SCSave[0m
  
  [2X> SCSave( [0X[3Xcomplex, filename[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Saves  a  simplicial  complex in a binary format (using [10XIO_Pickle[0m) to a file
  specified  in  [3Xfilename[0m  (as string). If [3Xfilename[0m does not end in [10X.scb[0m, this
  suffix is appended to the file name.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCSave(c,"bddelta3");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-4 SCSaveXML[0m
  
  [2X> SCSaveXML( [0X[3Xcomplex, filename[0X[2X ) ___________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Saves  a  simplicial  complex  [3Xcomplex[0m  to  a file specified by [3Xfilename[0m (as
  string)  in  XML  format.  If  [3Xfilename[0m  does not end in [10X.sc[0m, this suffix is
  appended to the file name.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(3);;[0X
    [4X gap> SCSaveXML(c,"bddelta3");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-5 SCExportMacaulay2[0m
  
  [2X> SCExportMacaulay2( [0X[3Xcomplex, ring, filename[, alphalabels][0X[2X ) ______[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Exports  the  facet  list of a given simplicial complex [3Xcomplex[0m in [10XMacaulay2[0m
  format  to a file specified by [3Xfilename[0m. The argument [3Xring[0m can either be the
  ring of integers (specified by [10XIntegers[0m) or the ring of rationals (sepcified
  by  [10XRationals[0m). The optional boolean argument [3Xalphalabels[0m labels the complex
  with  characters  from a, dots ,z in the exported file if a value of [9Xtrue[0m is
  supplied,  while  the  standard  labeling  of the vertices is v_1, dots ,v_n
  where  n  is  the number of vertices of [3Xcomplex[0m. If [3Xcomplex[0m has more than 26
  vertices, the argument [3Xalphalabels[0m is ignored.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCExportMacaulay2(c,Integers,"/tmp/bdbeta4.m2");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-6 SCExportPolymake[0m
  
  [2X> SCExportPolymake( [0X[3Xcomplex, filename[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Exports  the  facet  list  with  vertex labels of a given simplicial complex
  [3Xcomplex[0m  in [10Xpolymake[0m format to a file specified by [3Xfilename[0m. Currently, only
  the export in the format of [10Xpolymake[0m version 2.3 is supported.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCExportPolymake(c,"/tmp/bdbeta4.poly");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-7 SCImportPolymake[0m
  
  [2X> SCImportPolymake( [0X[3Xfilename[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, [9Xfail[0m
            otherwise.
  
  Imports  the  facet  list  of  a  [10Xtopaz[0m  [10Xpolymake[0m file specified by [3Xfilename[0m
  (discarding  any vertex labels) and creates a simplicial complex object from
  these facets.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCExportPolymake(c,"/tmp/bdbeta4.poly");[0X
    [4X true[0X
    [4X gap> d:=SCImportPolymake("/tmp/bdbeta4.poly");[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X [0X
    [4X  Name="polymake import '/tmp/bdbeta4.poly'"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c=d;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-8 SCExportLatexTable[0m
  
  [2X> SCExportLatexTable( [0X[3Xcomplex, filename, itemsperline[0X[2X ) ____________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m on success, [9Xfail[0m otherwise.
  
  Exports  the  facet  list of a given simplicial complex [3Xcomplex[0m (or any list
  given  as  first  argument)  in form of a LaTeX table to a file specified by
  [3Xfilename[0m.  The argument [3Xitemsperline[0m specifies how many columns the exported
  table should have. The faces are exported in the format < v_1,dots,v_k >.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdSimplex(5);;[0X
    [4X gap> SCExportLatexTable(c,"/tmp/bd5simplex.tex",5);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X12.2-9 SCExportJavaView[0m
  
  [2X> SCExportJavaView( [0X[3Xcomplex, file, coords[0X[2X ) ________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m on success, [9Xfail[0m otherwise.
  
  Exports  the  facet list of the given simplicial complex [3Xcomplex[0m in [10XJavaView[0m
  format  (file name suffix [10X.jvx[0m) to a file specified by [3Xfilename[0m (as string).
  The  list  [3Xcoords[0m must contain a 3-tuple of real coordinates for each vertex
  of  [3Xcomplex[0m,  either  as  tuple  of  length three containing the coordinates
  (Warning:  as  [5XGAP[0m  only  has rudimentary support for floating point values,
  currently  only  integer  numbers  can be used as coordinates when providing
  [3Xcoords[0m  as  list  of  3-tuples)  or as string of the form [10X"x.x y.y z.z"[0m with
  decimal  numbers  [10Xx.x[0m,  [10Xy.y[0m,  [10Xz.z[0m  for  the three coordinates (i.e. [10X"1.0 0.0
  0.0"[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> coords:=[[1,0,0],[0,1,0],[0,0,1]];;[0X
    [4X gap> SCExportJavaView(SCBdSimplex(2),"/tmp/triangle.jvx",coords);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
