  
  [1X9 Library and I/O[0X
  
  
  [1X9.1 Simplicial complex library[0X
  
  [5Xsimpcomp[0m contains a library of simplicial complexes on few vertices, most of
  them  (combinatorial)  triangulations  of manifolds. 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 exmaple, 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 d-manifolds, d <= 11 with few (n<= 13 and n<=
  15 for d=2,3,9,10,11) vertices 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 vertex transitive
  triangulations of pseudomanifolds.
  
  See  [2XSCLib[0m  ([14X9.1-2[0m)  for  a naming convention used for the global library of
  [5Xsimpcomp[0m.
  
  [1X9.1-1 SCIsLibRepository[0m
  
  [2X> SCIsLibRepository( [0X[3Xobject[0X[2X ) ________________________________________[0Xfilter
  [6XReturns:[0X  [9Xtrue[0m / [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
  
  [1X9.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=689[0X
    [4X  IndexAttributes=["Name", "Date", "Dim", "F", "G", "H", "Chi", "Homology"][0X
    [4X  Loaded=true[0X
    [4X  Path="GAPROOT/pkg/simpcomp/complexes/"[0X
    [4X ][0X
    [4X gap> SCLib.Size;[0X
    [4X 689[0X
    [4X gap> SCLib.SearchByName("S^4~");[0X
    [4X [ [ 204, "S^4~S^1 (VT)" ], [ 339, "S^4~S^1 (VT)" ], [ 341, "S^4~S^1 (VT)" ], [0X
    [4X   [ 438, "S^4~S^1 (VT)" ], [ 493, "S^4~S^1 (VT)" ], [ 494, "S^4~S^1 (VT)" ], [0X
    [4X   [ 495, "S^4~S^1 (VT)" ], [ 496, "S^4~S^1 (VT)" ], [ 497, "S^4~S^1 (VT)" ], [0X
    [4X   [ 500, "S^4~S^1 (VT)" ], [ 501, "S^4~S^1 (VT)" ], [ 502, "S^4~S^1 (VT)" ] ][0X
    [4X gap> SCLib.Load(204);          [0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, Boundary, Chi, ConnectedComponents, [0X
    [4X                    Dim, DualGraph, F, Faces, Facets, G, H, HasBoundary, [0X
    [4X                    HasInterior, Homology, Interior, IsConnected, [0X
    [4X                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0X
    [4X                    MinimalNonFaces, Name, Neighborliness, Orientation, [0X
    [4X                    Reference, StronglyConnected, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="S^4~S^1 (VT)"[0X
    [4X  Dim=5[0X
    [4X  Chi=0[0X
    [4X  F=[ 13, 78, 195, 260, 195, 65 ][0X
    [4X  G=[ 6, 21, -35 ][0X
    [4X  H=[ 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  IsPM=true[0X
    [4X  IsPure=true[0X
    [4X  Neighborliness=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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 complex [3Xcomplex[0m to a given repository [3Xrepository[0m. The complex
  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 fom the name of the complex, if it is named.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> myRepository:=SCLibInit("~/myrepository");[0X
    [4X #I  SCLibInit: made directory "~/myrepository/" for user library.[0X
    [4X #I  SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/myrepository/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X gap> complex:=SCBdCrossPolytope(4);;[0X
    [4X gap> SCLibAdd(myRepository,complex);[0X
    [4X #I  SCLibAdd: saving complex to file "complex_Bd(beta4)_2009-10-29_17-12-36.sc\[0X
    [4X ".[0X
    [4X true[0X
    [4X gap> myRepository.Add(complex);; # alternative syntax[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-4 SCLibAllComplexes[0m
  
  [2X> SCLibAllComplexes( [0X[3Xrepository[0X[2X ) __________________________________[0Xfunction
  [6XReturns:[0X  list   of  entries  of  the  form  [10X[ID,NAME][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.
  
  [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 689[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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 #I  SCLibInit: made directory "~/myrepository/" for user library.[0X
    [4X #I  SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/myrepository/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X gap> SCLibDelete(myRepository,1);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-6 SCLibDetermineTopologicalType[0m
  
  [2X> SCLibDetermineTopologicalType( [0X[3X[repository, ]complex[0X[2X ) ___________[0Xfunction
  [6XReturns:[0X  a  simplicial complex or a list of items integer ids 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 complexes with
  [3Xcomplex[0m by [2XSCEquivalent[0m ([14X6.2-2[0m).
  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: AltshulerSteinberg, AutomorphismGroup, [0X
    [4X                    AutomorphismGroupSize, AutomorphismGroupStructure, [0X
    [4X                    AutomorphismGroupTransitivity, Boundary, Chi, [0X
    [4X                    ConnectedComponents, Dim, DualGraph, F, Faces, Facets, G, [0X
    [4X                    Generators, H, HasBoundary, HasInterior, Homology, [0X
    [4X                    Interior, IsCentrallySymmetric, IsConnected, [0X
    [4X                    IsEulerianManifold, IsOrientable, IsPM, IsPure, [0X
    [4X                    MinimalNonFaces, Name, Neighborliness, Orientation, [0X
    [4X                    Reference, StronglyConnected, VertexLabels, Vertices.[0X
    [4X [0X
    [4X  Name="RP^2 (VT)"[0X
    [4X  Dim=2[0X
    [4X  AutomorphismGroupSize=60[0X
    [4X  AutomorphismGroupStructure="A5"[0X
    [4X  AutomorphismGroupTransitivity=2[0X
    [4X  Chi=1[0X
    [4X  F=[ 6, 15, 10 ][0X
    [4X  G=[ 2 ][0X
    [4X  H=[ 3, 6, 0 ][0X
    [4X  HasBoundary=false[0X
    [4X  HasInterior=true[0X
    [4X  Homology=[ [ 0, [ ] ], [ 0, [ 2 ] ], [ 0, [ ] ] ][0X
    [4X  IsCentrallySymmetric=false[0X
    [4X  IsConnected=true[0X
    [4X  IsEulerianManifold=true[0X
    [4X  IsOrientable=false[0X
    [4X  IsPM=true[0X
    [4X  IsPure=true[0X
    [4X  Neighborliness=2[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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 #I  SCLibInit: made directory "~/repository/" for user library.[0X
    [4X #I  SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/repository/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X gap> SCLibFlush(myRepository,"yes");[0X
    [4X #I  SCLibUpdate: rebuilding index for /home/effenbfx/testrepo/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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 and returns that library repository object in case of success.
  The  returned  object  then provides a mean to access the library repository
  via  the  SCLib-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 #I  SCLibInit: made directory "~/myrepository/" for user library.[0X
    [4X #I  SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/myrepository/.[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", "Date", "Dim", "F", "G", "H", "Chi", "Homology"][0X
    [4X Loaded=true[0X
    [4X Path="~/myrepository/"[0X
    [4X][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLibIsLoaded(SCLib);[0X
    [4X true[0X
    [4X gap> SCLib.IsLoaded;[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-10 SCLibSearchByAttribute[0m
  
  [2X> SCLibSearchByAttribute( [0X[3Xrepository, expr[0X[2X ) _______________________[0Xfunction
  [6XReturns:[0X  A  list  of  items  of  the  form  [10X[ID,  NAME][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  GAP  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 #search for all 3-neighborly complexes of dimension 4 in the global library[0X
    [4X gap> SCLibSearchByAttribute(SCLib,"Dim=4 and F[3]=Binomial(F[1],3)");[0X
    [4X [ [ 17, "CP^2 (VT)" ], [ 584, "K3 surface" ] ][0X
    [4X # alternative syntax[0X
    [4X gap> SCLib.SearchByAttribute("Dim=4 and F[3]=Binomial(F[1],3)");[0X
    [4X [ [ 17, "CP^2 (VT)" ], [ 584, "K3 surface" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-11 SCLibSearchByName[0m
  
  [2X> SCLibSearchByName( [0X[3Xrepository, name[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  A  list  of  items  of  the  form  [10X[ID,  NAME][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 ([14X9.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 [ [ 584, "K3 surface" ] ][0X
    [4X gap> SCLib.SearchByName("K3"); #alternative syntax[0X
    [4X [ [ 584, "K3 surface" ] ][0X
    [4X gap> SCLib.SearchByName("S^4x"); #search for products with S^4[0X
    [4X [ [ 291, "S^4xS^1 (VT)" ], [ 340, "S^4xS^1 (VT)" ], [ 342, "S^4xS^1 (VT)" ], [0X
    [4X   [ 571, "S^4xS^2" ], [ 627, "S^4xS^3" ], [ 655, "S^4xS^4" ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.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 689[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-13 SCLibUpdate[0m
  
  [2X> SCLibUpdate( [0X[3Xrepository, OR, path[, 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
  [3Xrepository[0m  or  a  base path [9Xpath[0m of a repository) 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 of fail 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 #I  SCLibInit: made directory "~/repository/" for user library.[0X
    [4X #I  SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/repository/.[0X
    [4X #I  SCLibUpdate: rebuilding index done.[0X
    [4X gap> SCLibUpdate(myRepository);[0X
    [4X #I  SCLibUpdate: rebuilding index for ~/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", "Date", "Dim", "F", "G", "H", "Chi", "Homology"][0X
    [4X Loaded=true[0X
    [4X Path="~/myrepository/"[0X
    [4X][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.1-14 SCLibStatus[0m
  
  [2X> SCLibStatus( [0X[3Xrepository[0X[2X ) ________________________________________[0Xfunction
  [6XReturns:[0X  the  library  repository  object of type [10XSCLibRepository[0m passed as
            argument.
  
  Lets  GAP  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 precalculated 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=N[0X
    [4X IndexAttributes=["Name", "Date", "Dim", "F", "G", "H", "Chi", "Homology"][0X
    [4X Loaded=true[0X
    [4X Path="GAPROOT/pkg/simpcomp/complexes/"[0X
    [4X][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X9.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.
  
  [1X9.2-1 SCLoad[0m
  
  [2X> SCLoad( [0X[3Xfilename[0X[2X ) _______________________________________________[0Xfunction
  [6XReturns:[0X  simplicial complex of type [10XSCSimplicialComplex[0m if successful, fail
            otherwise.
  
  Loads  a  simplicial  complex  stored in XML format from a file specified in
  [3Xfilename[0m  (as  string).  If  the filename provided 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> SCSave(c,"bddelta3");[0X
    [4X true[0X
    [4X gap> c:=SCLoad("bddelta3");[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AutomorphismGroup, AutomorphismGroupOrder, [0X
    [4X                    AutomorphismGroupStructure, AutomorphismGroupTransitivity, [0X
    [4X                    Chi, Dim, F, Facets, Generators, HasBoundary, Homology, [0X
    [4X                    IsConnected, IsStronglyConnected, Name, TopologicalType, [0X
    [4X                    VertexLabels.[0X
    [4X [0X
    [4X  Name="S^2_4"[0X
    [4X  Dim=2[0X
    [4X  TopologicalType="S^2"[0X
    [4X  Chi=2[0X
    [4X  F=[4, 6, 4][0X
    [4X  Homology=[[0, []], [0, []], [1, []]][0X
    [4X  AutomorphismGroupStructure="S4"[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-2 SCSave[0m
  
  [2X> SCSave( [0X[3Xcomplex, filename[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  true if successful, fail otherwise.
  
  Saves  a  simplicial  complex  [3Xcomplex[0m  to  a file specified by [3Xfilename[0m (as
  string)  in  XML format. If the file name provided 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> SCSave("bddelta3");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-3 SCExportMacaulay2[0m
  
  [2X> SCExportMacaulay2( [0X[3Xcomplex, filename, ring[, alphalabels][0X[2X ) ______[0Xfunction
  [6XReturns:[0X  true upon success, fail 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,..,z  in  the  exported file if a value of [9Xtrue[0m is
  supplied, while the standard labeling of the vertices is v1,..,vn 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,"bdbeta4.poly",);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-4 SCExportPolymake[0m
  
  [2X> SCExportPolymake( [0X[3Xcomplex, filename[0X[2X ) ____________________________[0Xfunction
  [6XReturns:[0X  true upon success, fail 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,"bdbeta4.poly");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-5 SCImportPolymake[0m
  
  [2X> SCImportPolymake( [0X[3Xfilename[0X[2X ) _____________________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex of type [10XSCSimplicialComplex[0m upon success, fail
            otherwise.
  
  Imports  the  facet  list  of  a  topaz polymake file (discarding any vertex
  labels)  specified  by [3Xfilename[0m and creates a simplicial complex object from
  these facets.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCImportPolymake("3dimcomplex.poly");[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X Properties known: Chi, Dim, Facets, VertexLabels.[0X
    [4X[0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-6 SCExportLatexTable[0m
  
  [2X> SCExportLatexTable( [0X[3Xfacets, filename, itemsperline[0X[2X ) _____________[0Xfunction
  [6XReturns:[0X  true on success, fail otherwise.
  
  Exports  the  facet  list  of  a given simplicial complex or a list of faces
  specified  in  [3Xfacets[0m  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,"bd5simplex.tex",5);[0X
    [4X true[0X
    [4X gap> c.ExportLatexTable("bd5simplex.tex",5);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X9.2-7 SCExportJavaView[0m
  
  [2X> SCExportJavaView( [0X[3Xcomplex, file, coords[0X[2X ) ________________________[0Xfunction
  [6XReturns:[0X  true on success, fail 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  the  complex, either as tuple of length three containing the coordinates
  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). Warning: as GAP only has
  rudementary  support  for  floating  point  values,  currently  only integer
  numbers can be used as coordinates.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> coords:=[[1,0,0],[0,1,0],[0,0,1]];;[0X
    [4X gap> SCExportJavaView(SCBdSimplex(2),"triangle.jvx",coords);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
