Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

1034945 views
1
2
13 Library and I/O
3
4
5
13.1 Simplicial complex library
6
7
simpcomp contains a library of simplicial complexes on few vertices, most of
8
them (combinatorial) triangulations of manifolds and pseudomanifolds. The
9
user can load these known triangulations from the library in order to study
10
their properties or to construct new triangulations out of the known ones.
11
For example, a user could determine the topological type of a given
12
triangulation -- which can be quite tedious if done by hand -- by
13
establishing a PL equivalence to a complex in the library.
14
15
Among other known triangulations, the library contains all of the vertex
16
transitive triangulations of combinatorial manifolds with up to 15 vertices
17
(for d ∈ { 2,3,9,10,11,12}) and up to 13 vertices (for d ∈ { 4,5,6,7,8 })
18
and all of the vertex transitive combinatorial pseudomanifolds with up to 15
19
vertices (for d=3) and up to 13 vertices (for d ∈ { 4,5,6,7 }) classified by
20
Frank Lutz that can be found on his ``Manifold Page''
21
http://www.math.tu-berlin.de/diskregeom/stellar/, along with some
22
triangulations of sphere bundles and some bounded triangulated PL-manifolds.
23
24
See SCLib (13.1-2) for a naming convention used for the global library of
25
simpcomp. Note: Another way of storing and loading complexes is provided by
26
the functions SCExportIsoSig (6.2-2), SCExportToString (6.2-1) and
27
SCFromIsoSig (6.2-3), see Section 6.2 for details.
28
29
13.1-1 SCIsLibRepository
30
31
SCIsLibRepository( object )  filter
32
Returns: true or false upon success, fail otherwise.
33
34
Filter for the category of a library repository SCIsLibRepository used by
35
the simpcomp library. The category SCLibRepository is derived from the
36
category SCPropertyObject.
37
38
 Example 
39
 gap> SCIsLibRepository(SCLib); #the global library is stored in SCLib
40
 true
41
 
42

43
44
13.1-2 SCLib
45
46
SCLib global variable
47
48
The global variable SCLib contains the library object of the global library
49
of simpcomp through which the user can access the library. The path to the
50
global library is GAPROOT/pkg/simpcomp/complexes.
51
52
The naming convention in the global library is the following: complexes are
53
usually named by their topological type. As usual, `S^d' denotes a d-sphere,
54
`T' a torus, `x' the cartesian product, `~' the twisted product and `#' the
55
connected sum. The Klein Bottle is denoted by `K' or `K^2'.
56
57
 Example 
58
 gap> SCLib;
59
 [Simplicial complex library. Properties:
60
 CalculateIndexAttributes=true
61
 Number of complexes in library=7649
62
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
63
 "IsManifold" ]
64
 Loaded=true
65
 Path="/home/mi/spreerjn/private/apps/gap4r8/pkg/simpcomp/complexes/"
66
 ]
67
 gap> SCLib.Size;
68
 7649
69
 gap> SCLib.SearchByName("S^4~");
70
 [ [ 463, "S^4~S^1 (VT)" ], [ 1473, "S^4~S^1 (VT)" ], [ 1474, "S^4~S^1 (VT)" ],
71
 [ 2477, "S^4~S^1 (VT)" ], [ 4395, "S^4~S^1 (VT)" ], 
72
 [ 4396, "S^4~S^1 (VT)" ], [ 4397, "S^4~S^1 (VT)" ], 
73
 [ 4398, "S^4~S^1 (VT)" ], [ 4399, "S^4~S^1 (VT)" ], 
74
 [ 4402, "S^4~S^1 (VT)" ], [ 4403, "S^4~S^1 (VT)" ], 
75
 [ 4404, "S^4~S^1 (VT)" ] ]
76
 gap> SCLib.Load(last[1][1]); 
77
 [SimplicialComplex
78
 
79
 Properties known: AltshulerSteinberg, ConnectedComponents, Dim, 
80
 DualGraph, EulerCharacteristic, FVector, FacetsEx, 
81
 GVector, HVector, HasBoundary, HasInterior, 
82
 Homology, Interior, IsConnected, 
83
 IsEulerianManifold, IsManifold, IsOrientable, 
84
 IsPseudoManifold, IsPure, IsStronglyConnected, 
85
 MinimalNonFacesEx, Name, Neighborliness, 
86
 NumFaces[], Orientation, Reference, SkelExs[], 
87
 Vertices.
88
 
89
 Name="S^4~S^1 (VT)"
90
 Dim=5
91
 AltshulerSteinberg=2417917928025780
92
 EulerCharacteristic=0
93
 FVector=[ 13, 78, 195, 260, 195, 65 ]
94
 GVector=[ 6, 21, -35 ]
95
 HVector=[ 7, 28, -7, 28, 7, 1 ]
96
 HasBoundary=false
97
 HasInterior=true
98
 Homology=[ [ 0, [ ] ], [ 1, [ ] ], [ 0, [ ] ], [ 0, [ ] ], [ 0, [ 2 ] ], [ 0,\
99
 [ ] ] ]
100
 IsConnected=true
101
 IsEulerianManifold=true
102
 IsOrientable=false
103
 IsPseudoManifold=true
104
 IsPure=true
105
 IsStronglyConnected=true
106
 Neighborliness=2
107
 
108
 /SimplicialComplex]
109
 
110

111
112
13.1-3 SCLibAdd
113
114
SCLibAdd( repository, complex[, name] )  function
115
Returns: true upon success, fail otherwise.
116
117
Adds a given simplicial complex complex to a given repository repository of
118
type SCIsLibRepository. complex is saved to a file with suffix .sc in the
119
repositories base path, where the file name is either formed from the
120
optional argument name and the current time or taken from the name of the
121
complex, if it is named.
122
123
 Example 
124
 gap> info:=InfoLevel(InfoSimpcomp);;
125
 gap> SCInfoLevel(0);;
126
 gap> myRepository:=SCLibInit("/tmp/repository");
127
 [Simplicial complex library. Properties:
128
 CalculateIndexAttributes=true
129
 Number of complexes in library=0
130
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
131
 "IsManifold" ]
132
 Loaded=true
133
 Path="/tmp/repository/"
134
 ]
135
 gap> complex1:=SCBdCrossPolytope(4);;
136
 gap> SCLibAdd(myRepository,complex1);
137
 true
138
 gap> complex2:=SCBdCrossPolytope(4);;
139
 gap> myRepository.Add(complex2);; # alternative syntax
140
 gap> SCInfoLevel(info);;
141
 
142

143
144
13.1-4 SCLibAllComplexes
145
146
SCLibAllComplexes( repository )  function
147
Returns: list of entries of the form [ integer, string ] upon success, fail
148
otherwise.
149
150
Returns a list with entries of the form [ ID, NAME ] of all the complexes in
151
the given repository repository of type SCIsLibRepository.
152
153
 Example 
154
 gap> all:=SCLibAllComplexes(SCLib);;
155
 gap> all[1];
156
 [ 1, "Moebius Strip" ]
157
 gap> Length(all);
158
 7649
159
 
160

161
162
13.1-5 SCLibDelete
163
164
SCLibDelete( repository, id )  function
165
Returns: true upon success, fail otherwise.
166
167
Deletes the simplicial complex with the given id id from the given
168
repository repository. Apart from deleting the complexes' index entry, the
169
associated .sc file is also deleted.
170
171
 Example 
172
 gap> myRepository:=SCLibInit("/tmp/repository");
173
 [Simplicial complex library. Properties:
174
 CalculateIndexAttributes=true
175
 Number of complexes in library=2
176
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
177
 "IsManifold" ]
178
 Loaded=true
179
 Path="/tmp/repository/"
180
 ]
181
 gap> SCLibAdd(myRepository,SCSimplex(2));;
182
 gap> SCLibDelete(myRepository,1);
183
 true
184
 
185

186
187
13.1-6 SCLibDetermineTopologicalType
188
189
SCLibDetermineTopologicalType( [repository, ]complex )  function
190
Returns: simplicial complex of type SCSimplicialComplex or a list of
191
integers upon success, fail otherwise.
192
193
Tries to determine the topological type of a given complex complex by first
194
looking for complexes with matching homology in the library repository
195
repository (if no repository is passed, the global repository SCLib is used)
196
and either returns a simplicial complex object (that is combinatorially
197
isomorphic to the complex given) or a list of library ids of complexes in
198
the library with the same homology as the complex provided.
199
200
The ids obtained in this way can then be used to compare the corresponding
201
complexes with complex via the function SCEquivalent (9.2-2).
202
203
If complex is a combinatorial manifold of dimension 1 or 2 its topological
204
type is computed, stored to the property TopologicalType and complex is
205
returned.
206
207
If no complexes with matching homology can be found, the empty set is
208
returned.
209
210
 Example 
211
 gap> c:=SCFromFacets([[1,2,3],[1,2,6],[1,3,5],[1,4,5],[1,4,6],
212
 [2,3,4],[2,4,5],[2,5,6],[3,4,6],[3,5,6]]);;
213
 gap> SCLibDetermineTopologicalType(c);
214
 [SimplicialComplex
215
 
216
 Properties known: BoundaryEx, Dim, FacetsEx, HasBoundary, 
217
 IsPseudoManifold, IsPure, Name, SkelExs[], 
218
 Vertices.
219
 
220
 Name="unnamed complex 167"
221
 Dim=2
222
 HasBoundary=false
223
 IsPseudoManifold=true
224
 IsPure=true
225
 
226
 /SimplicialComplex]
227
 
228

229
230
13.1-7 SCLibFlush
231
232
SCLibFlush( repository, confirm )  function
233
Returns: true upon success, fail otherwise.
234
235
Completely empties a given repository repository. The index and all
236
simplicial complexes in this repository are deleted. The second argument,
237
confirm, must be the string "yes" in order to confirm the deletion.
238
239
 Example 
240
 gap> myRepository:=SCLibInit("/tmp/repository");;
241
 gap> SCLibFlush(myRepository,"yes");
242
 #I SCLibInit: invalid parameters.
243
 true
244
 
245

246
247
13.1-8 SCLibInit
248
249
SCLibInit( dir )  function
250
Returns: library repository of type SCLibRepository upon success, fail
251
otherwise.
252
253
This function initializes a library repository object for the given
254
directory dir (which has to be provided in form of a GAP object of type
255
String or Directory) and returns that library repository object in case of
256
success. The returned object then provides a mean to access the library
257
repository via the SCLib-functions of simpcomp.
258
259
The global library repository of simpcomp is loaded automatically at startup
260
and is stored in the variable SCLib. User repositories can be created by
261
calling SCLibInit with a desired destination directory. Note that each
262
repository must reside in a different path since otherwise data may get
263
lost.
264
265
The function first tries to load the repository index for the given
266
directory to rebuild it (by calling SCLibUpdate) if loading the index fails.
267
The library index of a library repository is stored in its base path in the
268
XML file complexes.idx, the complexes are stored in files with suffix .sc,
269
also in XML format.
270
271
 Example 
272
 gap> myRepository:=SCLibInit("/tmp/repository");
273
 #I SCLibInit: made directory "/tmp/repository/" for user library.
274
 #I SCIntFunc.SCLibInit: index not found -- trying to reconstruct it.
275
 #I SCLibUpdate: rebuilding index for /tmp/repository/.
276
 #I SCLibUpdate: rebuilding index done.
277
 [Simplicial complex library. Properties:
278
 CalculateIndexAttributes=true
279
 Number of complexes in library=0
280
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
281
 "IsManifold" ]
282
 Loaded=true
283
 Path="/tmp/repository/"
284
 ]
285
 
286

287
288
13.1-9 SCLibIsLoaded
289
290
SCLibIsLoaded( repository )  function
291
Returns: true or false upon succes, fail otherwise.
292
293
Returns true when a given library repository repository is in loaded state.
294
This means that the directory of this repository is accessible and a
295
repository index file for this repository exists in the repositories' path.
296
If this is not the case false is returned.
297
298
 Example 
299
 gap> SCLibIsLoaded(SCLib);
300
 true
301
 gap> SCLib.IsLoaded;
302
 true
303
 
304

305
306
13.1-10 SCLibSearchByAttribute
307
308
SCLibSearchByAttribute( repository, expr )  function
309
Returns: A list of items of the form [ integer, string ] upon success, fail
310
otherwise.
311
312
Searches a given repository repository for complexes for which the boolean
313
expression expr, passed as string, evaluates to true and returns a list of
314
complexes with entries of the form [ID, NAME] or fail upon error. The
315
expression may use all GAP functions and can access all the indexed
316
attributes of the complexes in the given repository for the query. The
317
standard attributes are: Dim (Dimension), F (f-vector), G (g-vector), H
318
(h-vector), Chi (Euler characteristic), Homology, Name, IsPM, IsManifold.
319
See SCLib for the set of indexed attributes of the global library of
320
simpcomp.
321
322
 Example 
323
 gap> SCLibSearchByAttribute(SCLib,"Dim=4 and F[3]=Binomial(F[1],3)");
324
 [ [ 16, "CP^2 (VT)" ], [ 7648, "K3_16" ] ]
325
 gap> SCLib.SearchByAttribute("Dim=4 and F[3]=Binomial(F[1],3)");
326
 [ [ 16, "CP^2 (VT)" ], [ 7648, "K3_16" ] ]
327
 
328

329
330
13.1-11 SCLibSearchByName
331
332
SCLibSearchByName( repository, name )  function
333
Returns: A list of items of the form [ integer, string ] upon success, fail
334
otherwise.
335
336
Searches a given repository repository for complexes that contain the string
337
name as a substring of their name attribute and returns a list of the
338
complexes found with entries of the form [ID, NAME]. See SCLib (13.1-2) for
339
a naming convention used for the global library of simpcomp.
340
341
 Example 
342
 gap> SCLibSearchByName(SCLib,"K3");
343
 [ [ 7648, "K3_16" ], [ 7649, "K3_17" ] ]
344
 gap> SCLib.SearchByName("K3"); #alternative syntax
345
 [ [ 7648, "K3_16" ], [ 7649, "K3_17" ] ]
346
 gap> SCLib.SearchByName("S^4x"); #search for products with S^4
347
 [ [ 713, "S^4xS^1 (VT)" ], [ 1472, "S^4xS^1 (VT)" ], [ 1475, "S^4xS^1 (VT)" ],
348
 [ 7479, "S^4xS^2" ], [ 7539, "S^4xS^3" ], [ 7573, "S^4xS^4" ] ]
349
 
350

351
352
13.1-12 SCLibSize
353
354
SCLibSize( repository )  function
355
Returns: integer upon success, fail otherwise.
356
357
Returns the number of complexes contained in the given repository
358
repository. Fails if the library repository was not previously loaded with
359
SCLibInit.
360
361
 Example 
362
 gap> SCLibSize(SCLib); #SCLib is the repository of the global library
363
 7649
364
 
365

366
367
13.1-13 SCLibUpdate
368
369
SCLibUpdate( repository[, recalc] )  function
370
Returns: library repository of type SCLibRepository upon success, fail
371
otherwise.
372
373
Recreates the index of a given repository (either via a repository object or
374
a base path of a repository repository) by scanning the base path for all
375
.sc files containing simplicial complexes of the repository. Returns a
376
repository object with the newly created index on success or fail in case of
377
an error. The optional boolean argument recalc forces simpcomp to recompute
378
all the indexed properties (such as f-vector, homology, etc.) of the
379
simplicial complexes in the repository if set to true.
380
381
 Example 
382
 gap> myRepository:=SCLibInit("/tmp/repository");;
383
 gap> SCLibUpdate(myRepository);
384
 #I SCLibUpdate: rebuilding index for /tmp/repository/.
385
 #I SCLibUpdate: rebuilding index done.
386
 [Simplicial complex library. Properties:
387
 CalculateIndexAttributes=true
388
 Number of complexes in library=0
389
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
390
 "IsManifold" ]
391
 Loaded=true
392
 Path="/tmp/repository/"
393
 ]
394
 
395

396
397
13.1-14 SCLibStatus
398
399
SCLibStatus( repository )  function
400
Returns: library repository of type SCLibRepository upon success, fail
401
otherwise.
402
403
Lets GAP print the status of a given library repository repository.
404
IndexAttributes is the list of attributes indexed for this repository. If
405
CalculateIndexAttributes is true, the index attributes for a complex added
406
to the library are calculated automatically upon addition of the complex,
407
otherwise this is left to the user and only pre-calculated attributes are
408
indexed.
409
410
 Example 
411
 gap> SCLibStatus(SCLib);
412
 [Simplicial complex library. Properties:
413
 CalculateIndexAttributes=true
414
 Number of complexes in library=7649
415
 IndexAttributes=[ "Name", "Dim", "F", "G", "H", "Chi", "Homology", "IsPM", 
416
 "IsManifold" ]
417
 Loaded=true
418
 Path="/home/mi/spreerjn/private/apps/gap4r8/pkg/simpcomp/complexes/"
419
 ]
420
 
421

422
423
424
13.2 simpcomp input / output functions
425
426
This section contains a description of the input/output-functionality
427
provided by simpcomp. The package provides the functionality to save and
428
load simplicial complexes (and their known properties) to, respectively from
429
files in XML format. Furthermore, it provides the user with functions to
430
export simplicial complexes into polymake format (for this format there also
431
exists rudimentary import functionality), as JavaView geometry or in form of
432
a LaTeX table. For importing more complex polymake data the package
433
polymaking [R\"13] can be used.
434
435
13.2-1 SCLoad
436
437
SCLoad( filename )  function
438
Returns: simplicial complex of type SCSimplicialComplex upon success, fail
439
otherwise.
440
441
Loads a simplicial complex stored in a binary format (using IO_Pickle) from
442
a file specified in filename (as string). If filename does not end in .scb,
443
this suffix is appended to the file name.
444
445
 Example 
446
 gap> c:=SCBdSimplex(3);;
447
 gap> SCSave(c,"/tmp/bddelta3");
448
 true
449
 gap> d:=SCLoad("/tmp/bddelta3");
450
 [SimplicialComplex
451
 
452
 Properties known: AutomorphismGroup, AutomorphismGroupSize, 
453
 AutomorphismGroupStructure, 
454
 AutomorphismGroupTransitivity, Dim, 
455
 EulerCharacteristic, FacetsEx, GeneratorsEx, 
456
 HasBoundary, Homology, IsConnected, 
457
 IsStronglyConnected, Name, NumFaces[], 
458
 TopologicalType, Vertices.
459
 
460
 Name="S^2_4"
461
 Dim=2
462
 AutomorphismGroupSize=24
463
 AutomorphismGroupStructure="S4"
464
 AutomorphismGroupTransitivity=4
465
 EulerCharacteristic=2
466
 HasBoundary=false
467
 Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ]
468
 IsConnected=true
469
 IsStronglyConnected=true
470
 TopologicalType="S^2"
471
 
472
 /SimplicialComplex]
473
 gap> c=d;
474
 true
475
 
476

477
478
13.2-2 SCLoadXML
479
480
SCLoadXML( filename )  function
481
Returns: simplicial complex of type SCSimplicialComplex upon success, fail
482
otherwise.
483
484
Loads a simplicial complex stored in XML format from a file specified in
485
filename (as string). If filename does not end in .sc, this suffix is
486
appended to the file name.
487
488
 Example 
489
 gap> c:=SCBdSimplex(3);;
490
 gap> SCSaveXML(c,"/tmp/bddelta3");
491
 true
492
 gap> d:=SCLoadXML("/tmp/bddelta3");
493
 [SimplicialComplex
494
 
495
 Properties known: AutomorphismGroup, AutomorphismGroupSize, 
496
 AutomorphismGroupStructure, 
497
 AutomorphismGroupTransitivity, Dim, 
498
 EulerCharacteristic, FacetsEx, GeneratorsEx, 
499
 HasBoundary, Homology, IsConnected, 
500
 IsStronglyConnected, Name, NumFaces[], 
501
 TopologicalType, Vertices.
502
 
503
 Name="S^2_4"
504
 Dim=2
505
 AutomorphismGroupSize=24
506
 AutomorphismGroupStructure="S4"
507
 AutomorphismGroupTransitivity=4
508
 EulerCharacteristic=2
509
 HasBoundary=false
510
 Homology=[ [ 0, [ ] ], [ 0, [ ] ], [ 1, [ ] ] ]
511
 IsConnected=true
512
 IsStronglyConnected=true
513
 TopologicalType="S^2"
514
 
515
 /SimplicialComplex]
516
 gap> c=d;
517
 true
518
 
519

520
521
13.2-3 SCSave
522
523
SCSave( complex, filename )  function
524
Returns: true upon success, fail otherwise.
525
526
Saves a simplicial complex in a binary format (using IO_Pickle) to a file
527
specified in filename (as string). If filename does not end in .scb, this
528
suffix is appended to the file name.
529
530
 Example 
531
 gap> c:=SCBdSimplex(3);;
532
 gap> SCSave(c,"/tmp/bddelta3");
533
 true
534
 
535

536
537
13.2-4 SCSaveXML
538
539
SCSaveXML( complex, filename )  function
540
Returns: true upon success, fail otherwise.
541
542
Saves a simplicial complex complex to a file specified by filename (as
543
string) in XML format. If filename does not end in .sc, this suffix is
544
appended to the file name.
545
546
 Example 
547
 gap> c:=SCBdSimplex(3);;
548
 gap> SCSaveXML(c,"/tmp/bddelta3");
549
 true
550
 
551

552
553
13.2-5 SCExportMacaulay2
554
555
SCExportMacaulay2( complex, ring, filename[, alphalabels] )  function
556
Returns: true upon success, fail otherwise.
557
558
Exports the facet list of a given simplicial complex complex in Macaulay2
559
format to a file specified by filename. The argument ring can either be the
560
ring of integers (specified by Integers) or the ring of rationals (sepcified
561
by Rationals). The optional boolean argument alphalabels labels the complex
562
with characters from a, dots ,z in the exported file if a value of true is
563
supplied, while the standard labeling of the vertices is v_1, dots ,v_n
564
where n is the number of vertices of complex. If complex has more than 26
565
vertices, the argument alphalabels is ignored.
566
567
 Example 
568
 gap> c:=SCBdCrossPolytope(4);;
569
 gap> SCExportMacaulay2(c,Integers,"/tmp/bdbeta4.m2");
570
 true
571
 
572

573
574
13.2-6 SCExportPolymake
575
576
SCExportPolymake( complex, filename )  function
577
Returns: true upon success, fail otherwise.
578
579
Exports the facet list with vertex labels of a given simplicial complex
580
complex in polymake format to a file specified by filename. Currently, only
581
the export in the format of polymake version 2.3 is supported.
582
583
 Example 
584
 gap> c:=SCBdCrossPolytope(4);;
585
 gap> SCExportPolymake(c,"/tmp/bdbeta4.poly");
586
 true
587
 
588

589
590
13.2-7 SCImportPolymake
591
592
SCImportPolymake( filename )  function
593
Returns: simplicial complex of type SCSimplicialComplex upon success, fail
594
otherwise.
595
596
Imports the facet list of a topaz polymake file specified by filename
597
(discarding any vertex labels) and creates a simplicial complex object from
598
these facets.
599
600
 Example 
601
 gap> c:=SCBdCrossPolytope(4);;
602
 gap> SCExportPolymake(c,"/tmp/bdbeta4.poly");
603
 true
604
 gap> d:=SCImportPolymake("/tmp/bdbeta4.poly");
605
 [SimplicialComplex
606
 
607
 Properties known: Dim, FacetsEx, Name, Vertices.
608
 
609
 Name="polymake import '/tmp/bdbeta4.poly'"
610
 Dim=3
611
 
612
 /SimplicialComplex]
613
 gap> c=d;
614
 true
615
 
616

617
618
13.2-8 SCExportLatexTable
619
620
SCExportLatexTable( complex, filename, itemsperline )  function
621
Returns: true on success, fail otherwise.
622
623
Exports the facet list of a given simplicial complex complex (or any list
624
given as first argument) in form of a LaTeX table to a file specified by
625
filename. The argument itemsperline specifies how many columns the exported
626
table should have. The faces are exported in the format ⟨ v_1,dots,v_k ⟩.
627
628
 Example 
629
 gap> c:=SCBdSimplex(5);;
630
 gap> SCExportLatexTable(c,"/tmp/bd5simplex.tex",5);
631
 true
632
 
633

634
635
13.2-9 SCExportJavaView
636
637
SCExportJavaView( complex, file, coords )  function
638
Returns: true on success, fail otherwise.
639
640
Exports the 2-skeleton of the given simplicial complex complex (or the
641
facets if the complex is of dimension 2 or less) in JavaView format (file
642
name suffix .jvx) to a file specified by filename (as string). The list
643
coords must contain a 3-tuple of real coordinates for each vertex of
644
complex, either as tuple of length three containing the coordinates
645
(Warning: as GAP only has rudimentary support for floating point values,
646
currently only integer numbers can be used as coordinates when providing
647
coords as list of 3-tuples) or as string of the form "x.x y.y z.z" with
648
decimal numbers x.x, y.y, z.z for the three coordinates (i.e. "1.0 0.0
649
0.0").
650
651
 Example 
652
 gap> coords:=[[1,0,0],[0,1,0],[0,0,1]];;
653
 gap> SCExportJavaView(SCBdSimplex(2),"/tmp/triangle.jvx",coords);
654
 true
655
 
656

657
658
13.2-10 SCExportPolymake
659
660
SCExportPolymake( complex, filename )  function
661
Returns: true upon success, fail otherwise.
662
663
Exports the gluings of the tetrahedra of a given combinatorial 3-manifold
664
complex in a format compatible with Matveev's 3-manifold software
665
Recognizer.
666
667
 Example 
668
 gap> c:=SCBdCrossPolytope(4);;
669
 gap> SCExportRecognizer(c,"/tmp/bdbeta4.mv");
670
 true
671
 
672

673
674
13.2-11 SCExportSnapPy
675
676
SCExportSnapPy( complex, filename )  function
677
Returns: true upon success, fail otherwise.
678
679
Exports the facet list and orientability of a given combinatorial
680
3-pseudomanifold complex in SnapPy format to a file specified by filename.
681
682
 Example 
683
 gap> SCLib.SearchByAttribute("Dim=3 and F=[8,28,56,28]");
684
 [ [ 8, "PM^3 - TransitiveGroup(8,43), No. 1" ] ]
685
 gap> c:=SCLib.Load(last[1][1]);;
686
 gap> SCExportSnapPy(c,"/tmp/M38.tri");
687
 true
688
 
689

690
691
692