GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X4 [33X[0;0YFunctions and operations for the GAP object type [10XSCPolyhedralComplex[110X[101X[1X[133X[101X23[33X[0;0YIn the following all operations for the [5XGAP[105X object type [10XSCPolyhedralComplex[110X4are listed. I. e. for the following operations only one method is5implemented to deal with all geometric objects derived from this object6type.[133X789[1X4.1 [33X[0;0YComputing properties of objects of type [10XSCPolyhedralComplex[110X[101X[1X[133X[101X1011[33X[0;0YThe following functions compute basic properties of objects of type12[10XSCPolyhedralComplex[110X (and thus also of objects of type [10XSCSimplicialComplex[110X13and [10XSCNormalSurface[110X). None of these functions alter the complex. All14properties are returned as immutable objects (this ensures data consistency15of the cached properties of a simplicial complex). Use [10XShallowCopy[110X or the16internal [5Xsimpcomp[105X function [10XSCIntFunc.DeepCopy[110X to get a mutable copy.[133X1718[33X[0;0YNote: every object is internally stored with the standard vertex labeling19from [22X1[122X to [22Xn[122X and a maptable to restore the original vertex labeling. Thus, we20have to relabel some of the complex properties (facets, etc...) whenever we21want to return them to the user. As a consequence, some of the functions22exist twice, one of them with the appendix "Ex". These functions return the23standard labeling whereas the other ones relabel the result to the original24labeling.[133X2526[1X4.1-1 SCFacets[101X2728[29X[2XSCFacets[102X( [3Xcomplex[103X ) [32X method29[6XReturns:[106X [33X[0;10Ya facet list upon success, [9Xfail[109X otherwise.[133X3031[33X[0;0YReturns the facets of a simplicial complex in the original vertex labeling.[133X3233[4X[32X Example [32X[104X34[4X[28X gap> c:=SC([[2,3],[3,4],[4,2]]);;[128X[104X35[4X[28X gap> SCFacets(c);[128X[104X36[4X[28X [ [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ][128X[104X37[4X[28X [128X[104X38[4X[32X[104X3940[1X4.1-2 SCFacetsEx[101X4142[29X[2XSCFacetsEx[102X( [3Xcomplex[103X ) [32X method43[6XReturns:[106X [33X[0;10Ya facet list upon success, [9Xfail[109X otherwise.[133X4445[33X[0;0YReturns the facets of a simplicial complex as they are stored, i. e. with46standard vertex labeling from 1 to n.[133X4748[4X[32X Example [32X[104X49[4X[28X gap> c:=SC([[2,3],[3,4],[4,2]]);;[128X[104X50[4X[28X gap> SCFacetsEx(c);[128X[104X51[4X[28X [ [ 1, 2 ], [ 1, 3 ], [ 2, 3 ] ][128X[104X52[4X[28X [128X[104X53[4X[32X[104X5455[1X4.1-3 SCVertices[101X5657[29X[2XSCVertices[102X( [3Xcomplex[103X ) [32X method58[6XReturns:[106X [33X[0;10Ya list of vertex labels of [3Xcomplex[103X upon success, [9Xfail[109X otherwise.[133X5960[33X[0;0YReturns the vertex labels of a simplicial complex [3Xcomplex[103X.[133X6162[4X[32X Example [32X[104X63[4X[28X gap> sphere:=SC([["x",45,[1,1]],["x",45,["b",3]],["x",[1,1],[128X[104X64[4X[28X ["b",3]],[45,[1,1],["b",3]]]);;[128X[104X65[4X[28X gap> SCVerticesEx(sphere);[128X[104X66[4X[28X [ 1 .. 4 ][128X[104X67[4X[28X gap> SCVertices(sphere);[128X[104X68[4X[28X [ 45, [ 1, 1 ], "x", [ "b", 3 ] ][128X[104X69[4X[28X [128X[104X70[4X[32X[104X7172[1X4.1-4 SCVerticesEx[101X7374[29X[2XSCVerticesEx[102X( [3Xcomplex[103X ) [32X method75[6XReturns:[106X [33X[0;10Y[22X[ 1, ... , n ][122X upon success, [9Xfail[109X otherwise.[133X7677[33X[0;0YReturns [22X[1, ... , n ][122X, where [22Xn[122X is the number of vertices of a simplicial78complex [3Xcomplex[103X.[133X7980[4X[32X Example [32X[104X81[4X[28X gap> c:=SC([[1,4,5],[4,9,8],[12,13,14,15,16,17]]);;[128X[104X82[4X[28X gap> SCVerticesEx(c);[128X[104X83[4X[28X [ 1 .. 11 ][128X[104X84[4X[28X [128X[104X85[4X[32X[104X868788[1X4.2 [33X[0;0YVertex labelings and label operations[133X[101X8990[33X[0;0YThis section focuses on functions operating on the labels of a complex such91as the name or the vertex labeling.[133X9293[33X[0;0YInternally, [5Xsimpcomp[105X uses the standard labeling [22X[1, ... , n][122X. It is94recommended to use simple vertex labels like integers and, whenever95possible, the standard labeling, see also [2XSCRelabelStandard[102X ([14X4.2-7[114X).[133X9697[1X4.2-1 SCLabelMax[101X9899[29X[2XSCLabelMax[102X( [3Xcomplex[103X ) [32X method100[6XReturns:[106X [33X[0;10Yvertex label of [3Xcomplex[103X (an integer, a short list, a character, a101short string) upon success, [9Xfail[109X otherwise.[133X102103[33X[0;0YThe maximum over all vertex labels is determined by the [5XGAP[105X function104[10XMaximumList[110X.[133X105106[4X[32X Example [32X[104X107[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X108[4X[28X gap> SCRelabel(c,[10,100,100000,3500]);;[128X[104X109[4X[28X gap> SCLabelMax(c);[128X[104X110[4X[28X 100000[128X[104X111[4X[28X [128X[104X112[4X[32X[104X113114[4X[32X Example [32X[104X115[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X116[4X[28X gap> SCRelabel(c,["a","bbb",5,[1,1]]);;[128X[104X117[4X[28X gap> SCLabelMax(c);[128X[104X118[4X[28X "bbb"[128X[104X119[4X[28X [128X[104X120[4X[32X[104X121122[1X4.2-2 SCLabelMin[101X123124[29X[2XSCLabelMin[102X( [3Xcomplex[103X ) [32X method125[6XReturns:[106X [33X[0;10Yvertex label of [3Xcomplex[103X (an integer, a short list, a character, a126short string) upon success, [9Xfail[109X otherwise.[133X127128[33X[0;0YThe minimum over all vertex labels is determined by the [5XGAP[105X function129[10XMinimumList[110X.[133X130131[4X[32X Example [32X[104X132[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X133[4X[28X gap> SCRelabel(c,[10,100,100000,3500]);;[128X[104X134[4X[28X gap> SCLabelMin(c);[128X[104X135[4X[28X 10[128X[104X136[4X[28X [128X[104X137[4X[32X[104X138139[4X[32X Example [32X[104X140[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X141[4X[28X gap> SCRelabel(c,["a","bbb",5,[1,1]]);;[128X[104X142[4X[28X gap> SCLabelMin(c);[128X[104X143[4X[28X 5[128X[104X144[4X[28X [128X[104X145[4X[32X[104X146147[1X4.2-3 SCLabels[101X148149[29X[2XSCLabels[102X( [3Xcomplex[103X ) [32X method150[6XReturns:[106X [33X[0;10Ya list of vertex labels of [3Xcomplex[103X (a list of integers, short151lists, characters, short strings, ...) upon success, [9Xfail[109X152otherwise.[133X153154[33X[0;0YReturns the vertex labels of [3Xcomplex[103X as a list. This is a synonym of155[2XSCVertices[102X ([14X4.1-3[114X).[133X156157[4X[32X Example [32X[104X158[4X[28X gap> c:=SCFromFacets(Combinations(["a","b","c","d"],3));;[128X[104X159[4X[28X gap> SCLabels(c);[128X[104X160[4X[28X [ "a", "b", "c", "d" ][128X[104X161[4X[28X [128X[104X162[4X[32X[104X163164[1X4.2-4 SCName[101X165166[29X[2XSCName[102X( [3Xcomplex[103X ) [32X operation167[6XReturns:[106X [33X[0;10Ya string upon success, [9Xfail[109X otherwise.[133X168169[33X[0;0YReturns the name of a simplicial complex [3Xcomplex[103X.[133X170171[4X[32X Example [32X[104X172[4X[28X gap> c:=SCBdSimplex(5);;[128X[104X173[4X[28X gap> SCName(c);[128X[104X174[4X[28X "S^4_6"[128X[104X175[4X[28X [128X[104X176[4X[32X[104X177178[4X[32X Example [32X[104X179[4X[28X gap> c:=SC([[1,2],[2,3],[3,1]]);;[128X[104X180[4X[28X gap> SCName(c);[128X[104X181[4X[28X "unnamed complex 2"[128X[104X182[4X[28X [128X[104X183[4X[32X[104X184185[1X4.2-5 SCReference[101X186187[29X[2XSCReference[102X( [3Xcomplex[103X ) [32X operation188[6XReturns:[106X [33X[0;10Ya string upon success, [9Xfail[109X otherwise.[133X189190[33X[0;0YReturns a literature reference of a polyhedral complex [3Xcomplex[103X.[133X191192[4X[32X Example [32X[104X193[4X[28X gap> c:=SCLib.Load(253);;[128X[104X194[4X[28X gap> SCReference(c);[128X[104X195[4X[28X "F.H.Lutz: 'The Manifold Page', http://www.math.tu-berlin.de/diskregeom/stella\[128X[104X196[4X[28X r/"[128X[104X197[4X[28X gap> c:=SC([[1,2],[2,3],[3,1]]);;[128X[104X198[4X[28X gap> SCReference(c);[128X[104X199[4X[28X #I SCReference: complex lacks reference.[128X[104X200[4X[28X fail[128X[104X201[4X[28X [128X[104X202[4X[32X[104X203204[1X4.2-6 SCRelabel[101X205206[29X[2XSCRelabel[102X( [3Xcomplex[103X, [3Xmaptable[103X ) [32X method207[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X208209[33X[0;0Y[3Xmaptable[103X has to be a list of length [22Xn[122X where [22Xn[122X is the number of vertices of210[3Xcomplex[103X. The function maps the [22Xi[122X-th entry of [3Xmaptable[103X to the [22Xi[122X-th entry of211the current vertex labels. If [3Xcomplex[103X has the standard vertex labeling [22X[1,212... , n][122X the vertex label [22Xi[122X is mapped to [3Xmaptable[i][103X.[133X213214[33X[0;0YNote that the elements of [3Xmaptable[103X must admit a total ordering. Hence,215following Section 4.11 of the [5XGAP[105X manual, they must be members of one of the216following families: rationals [10XIsRat[110X, cyclotomics [10XIsCyclotomic[110X, finite field217elements [10XIsFFE[110X, permutations [10XIsPerm[110X, booleans [10XIsBool[110X, characters [10XIsChar[110X and218lists (strings) [10XIsList[110X.[133X219220[33X[0;0YInternally the property ``SCVertices'' of [3Xcomplex[103X is replaced by [3Xmaptable.[103X[133X221222[4X[32X Example [32X[104X223[4X[28X gap> list:=SCLib.SearchByAttribute("F[1]=12");; [128X[104X224[4X[28X gap> c:=SCLib.Load(list[1][1]);;[128X[104X225[4X[28X gap> SCVertices(c);[128X[104X226[4X[28X [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ][128X[104X227[4X[28X gap> SCRelabel(c,["a","b","c","d","e","f","g","h","i","j","k","l"]);[128X[104X228[4X[28X true[128X[104X229[4X[28X gap> SCLabels(c);[128X[104X230[4X[28X [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l" ][128X[104X231[4X[28X [128X[104X232[4X[32X[104X233234[1X4.2-7 SCRelabelStandard[101X235236[29X[2XSCRelabelStandard[102X( [3Xcomplex[103X ) [32X method237[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X238239[33X[0;0YMaps vertex labels [22Xv_1 , ... , v_n[122X of [3Xcomplex[103X to [22X[1 , ... , n][122X. Internally240the property "SCVertices" is replaced by [22X[1 , ... , n][122X.[133X241242[4X[32X Example [32X[104X243[4X[28X gap> list:=SCLib.SearchByAttribute("F[1]=12");; [128X[104X244[4X[28X gap> c:=SCLib.Load(list[1][1]);;[128X[104X245[4X[28X gap> SCRelabel(c,[4..15]);[128X[104X246[4X[28X true[128X[104X247[4X[28X gap> SCVertices(c);[128X[104X248[4X[28X [ 4 .. 15 ][128X[104X249[4X[28X gap> SCRelabelStandard(c);[128X[104X250[4X[28X true[128X[104X251[4X[28X gap> SCLabels(c);[128X[104X252[4X[28X [ 1 .. 12 ][128X[104X253[4X[28X [128X[104X254[4X[32X[104X255256[1X4.2-8 SCRelabelTransposition[101X257258[29X[2XSCRelabelTransposition[102X( [3Xcomplex[103X, [3Xpair[103X ) [32X method259[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X260261[33X[0;0YPermutes vertex labels of a single pair of vertices. [3Xpair[103X has to be a list262of length [22X2[122X and a sublist of the property ``SCVertices''.[133X263264[33X[0;0YThe function is equivalent to [2XSCRelabel[102X ([14X4.2-6[114X) with [3Xmaptable[103X [22X= [265SCVertices[1] , ... , SCVertices[j] , ... , SCVertices[i] , dots ,266SCVertices[n]][122X if [3Xpair[103X [22X= [ SCVertices[j] , SCVertices[i]][122X, [22Xj ≤ i[122X, [22Xj ≠ i[122X.[133X267268[4X[32X Example [32X[104X269[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X270[4X[28X gap> SCVertices(c);[128X[104X271[4X[28X [ 1, 2, 3, 4 ][128X[104X272[4X[28X gap> SCRelabelTransposition(c,[1,2]);;[128X[104X273[4X[28X gap> SCLabels(c);[128X[104X274[4X[28X [ 2, 1, 3, 4 ][128X[104X275[4X[28X [128X[104X276[4X[32X[104X277278[1X4.2-9 SCRename[101X279280[29X[2XSCRename[102X( [3Xcomplex[103X, [3Xname[103X ) [32X method281[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X282283[33X[0;0YRenames a polyhedral complex. The argument [3Xname[103X has to be given in form of a284string.[133X285286[4X[32X Example [32X[104X287[4X[28X gap> c:=SCBdSimplex(5);;[128X[104X288[4X[28X gap> SCName(c);[128X[104X289[4X[28X "S^4_6"[128X[104X290[4X[28X gap> SCRename(c,"mySphere");[128X[104X291[4X[28X true[128X[104X292[4X[28X gap> SCName(c);[128X[104X293[4X[28X "mySphere"[128X[104X294[4X[28X [128X[104X295[4X[32X[104X296297[1X4.2-10 SCSetReference[101X298299[29X[2XSCSetReference[102X( [3Xcomplex[103X, [3Xref[103X ) [32X method300[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X301302[33X[0;0YSets the literature reference of a polyhedral complex. The argument [3Xref[103X has303to be given in form of a string.[133X304305[4X[32X Example [32X[104X306[4X[28X gap> c:=SCBdSimplex(5);;[128X[104X307[4X[28X gap> SCReference(c);[128X[104X308[4X[28X #I SCReference: complex lacks reference.[128X[104X309[4X[28X fail[128X[104X310[4X[28X gap> SCSetReference(c,"my 5-sphere in my cool paper");[128X[104X311[4X[28X true[128X[104X312[4X[28X gap> SCReference(c);[128X[104X313[4X[28X "my 5-sphere in my cool paper"[128X[104X314[4X[28X [128X[104X315[4X[32X[104X316317[1X4.2-11 SCUnlabelFace[101X318319[29X[2XSCUnlabelFace[102X( [3Xcomplex[103X, [3Xface[103X ) [32X method320[6XReturns:[106X [33X[0;10Ya list upon success, [9Xfail[109X otherwise.[133X321322[33X[0;0YComputes the standard labeling of [3Xface[103X in [3Xcomplex[103X.[133X323324[4X[32X Example [32X[104X325[4X[28X gap> c:=SCBdSimplex(3);;[128X[104X326[4X[28X gap> SCRelabel(c,["a","bbb",5,[1,1]]);;[128X[104X327[4X[28X gap> SCUnlabelFace(c,["a","bbb",5]);[128X[104X328[4X[28X [ 1, 2, 3 ][128X[104X329[4X[28X [128X[104X330[4X[32X[104X331332333[1X4.3 [33X[0;0YOperations on objects of type [10XSCPolyhedralComplex[110X[101X[1X[133X[101X334335[33X[0;0YThe following functions perform operations on objects of type336[10XSCPolyhedralComplex[110X and all of its subtypes. Most of them return simplicial337complexes. Thus, this section is closely related to the Sections [14X6.6[114X (for338objects of type [10XSCSimplicialComplex[110X), ''Generate new complexes from old''.339However, the data generated here is rather seen as an intrinsic attribute of340the original complex and not as an independent complex.[133X341342[1X4.3-1 SCAntiStar[101X343344[29X[2XSCAntiStar[102X( [3Xcomplex[103X, [3Xface[103X ) [32X method345[6XReturns:[106X [33X[0;10Ysimplicial complex of type [10XSCSimplicialComplex[110X upon success, [9Xfail[109X346otherwise .[133X347348[33X[0;0YComputes the anti star of [3Xface[103X (a face given as a list of vertices or a349scalar interpreted as vertex) in [3Xcomplex[103X, i. e. the complement of [3Xface[103X in350[3Xcomplex[103X.[133X351352[4X[32X Example [32X[104X353[4X[28X gap> SCLib.SearchByName("RP^2"); [128X[104X354[4X[28X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][128X[104X355[4X[28X gap> rp2:=SCLib.Load(last[1][1]);;[128X[104X356[4X[28X gap> SCVertices(rp2);[128X[104X357[4X[28X [ 1, 2, 3, 4, 5, 6 ][128X[104X358[4X[28X gap> SCAntiStar(rp2,1);[128X[104X359[4X[28X [SimplicialComplex[128X[104X360[4X[28X [128X[104X361[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X362[4X[28X [128X[104X363[4X[28X Name="ast([ 1 ]) in RP^2 (VT)"[128X[104X364[4X[28X Dim=2[128X[104X365[4X[28X [128X[104X366[4X[28X /SimplicialComplex][128X[104X367[4X[28X gap> last.Facets;[128X[104X368[4X[28X [ [ 2, 3, 4 ], [ 2, 4, 5 ], [ 2, 5, 6 ], [ 3, 4, 6 ], [ 3, 5, 6 ] ][128X[104X369[4X[28X [128X[104X370[4X[32X[104X371372[1X4.3-2 SCLink[101X373374[29X[2XSCLink[102X( [3Xcomplex[103X, [3Xface[103X ) [32X method375[6XReturns:[106X [33X[0;10Ysimplicial complex of type [10XSCSimplicialComplex[110X upon success, [9Xfail[109X376otherwise.[133X377378[33X[0;0YComputes the link of [3Xface[103X (a face given as a list of vertices or a scalar379interpreted as vertex) in a polyhedral complex [3Xcomplex[103X, i. e. all facets380containing [3Xface[103X, reduced by [3Xface[103X. if [3Xcomplex[103X is pure, the resulting complex381is of dimension dim([3Xcomplex[103X) - dim([3Xface[103X) [22X-1[122X. If [3Xface[103X is not a face of382[3Xcomplex[103X the empty complex is returned.[133X383384[4X[32X Example [32X[104X385[4X[28X gap> SCLib.SearchByName("RP^2"); [128X[104X386[4X[28X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][128X[104X387[4X[28X gap> rp2:=SCLib.Load(last[1][1]);;[128X[104X388[4X[28X gap> SCVertices(rp2);[128X[104X389[4X[28X [ 1, 2, 3, 4, 5, 6 ][128X[104X390[4X[28X gap> SCLink(rp2,[1]);[128X[104X391[4X[28X [SimplicialComplex[128X[104X392[4X[28X [128X[104X393[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X394[4X[28X [128X[104X395[4X[28X Name="lk([ 1 ]) in RP^2 (VT)"[128X[104X396[4X[28X Dim=1[128X[104X397[4X[28X [128X[104X398[4X[28X /SimplicialComplex][128X[104X399[4X[28X gap> last.Facets;[128X[104X400[4X[28X [ [ 2, 3 ], [ 2, 6 ], [ 3, 5 ], [ 4, 5 ], [ 4, 6 ] ][128X[104X401[4X[28X [128X[104X402[4X[32X[104X403404[1X4.3-3 SCLinks[101X405406[29X[2XSCLinks[102X( [3Xcomplex[103X, [3Xk[103X ) [32X method407[6XReturns:[106X [33X[0;10Ya list of simplicial complexes of type [10XSCSimplicialComplex[110X upon408success, [9Xfail[109X otherwise.[133X409410[33X[0;0YComputes the link of all [3Xk[103X-faces of the polyhedral complex [3Xcomplex[103X and411returns them as a list of simplicial complexes. Internally calls [2XSCLink[102X412([14X4.3-2[114X) for every [3Xk[103X-face of [3Xcomplex[103X.[133X413414[4X[32X Example [32X[104X415[4X[28X gap> c:=SCBdSimplex(4);;[128X[104X416[4X[28X gap> SCLinks(c,0);[128X[104X417[4X[28X [ [SimplicialComplex[128X[104X418[4X[28X [128X[104X419[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X420[4X[28X [128X[104X421[4X[28X Name="lk([ 1 ]) in S^3_5"[128X[104X422[4X[28X Dim=2[128X[104X423[4X[28X [128X[104X424[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X425[4X[28X [128X[104X426[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X427[4X[28X [128X[104X428[4X[28X Name="lk([ 2 ]) in S^3_5"[128X[104X429[4X[28X Dim=2[128X[104X430[4X[28X [128X[104X431[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X432[4X[28X [128X[104X433[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X434[4X[28X [128X[104X435[4X[28X Name="lk([ 3 ]) in S^3_5"[128X[104X436[4X[28X Dim=2[128X[104X437[4X[28X [128X[104X438[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X439[4X[28X [128X[104X440[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X441[4X[28X [128X[104X442[4X[28X Name="lk([ 4 ]) in S^3_5"[128X[104X443[4X[28X Dim=2[128X[104X444[4X[28X [128X[104X445[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X446[4X[28X [128X[104X447[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X448[4X[28X [128X[104X449[4X[28X Name="lk([ 5 ]) in S^3_5"[128X[104X450[4X[28X Dim=2[128X[104X451[4X[28X [128X[104X452[4X[28X /SimplicialComplex] ][128X[104X453[4X[28X gap> SCLinks(c,1);[128X[104X454[4X[28X [ [SimplicialComplex[128X[104X455[4X[28X [128X[104X456[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X457[4X[28X [128X[104X458[4X[28X Name="lk([ 1, 2 ]) in S^3_5"[128X[104X459[4X[28X Dim=1[128X[104X460[4X[28X [128X[104X461[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X462[4X[28X [128X[104X463[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X464[4X[28X [128X[104X465[4X[28X Name="lk([ 1, 3 ]) in S^3_5"[128X[104X466[4X[28X Dim=1[128X[104X467[4X[28X [128X[104X468[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X469[4X[28X [128X[104X470[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X471[4X[28X [128X[104X472[4X[28X Name="lk([ 1, 4 ]) in S^3_5"[128X[104X473[4X[28X Dim=1[128X[104X474[4X[28X [128X[104X475[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X476[4X[28X [128X[104X477[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X478[4X[28X [128X[104X479[4X[28X Name="lk([ 1, 5 ]) in S^3_5"[128X[104X480[4X[28X Dim=1[128X[104X481[4X[28X [128X[104X482[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X483[4X[28X [128X[104X484[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X485[4X[28X [128X[104X486[4X[28X Name="lk([ 2, 3 ]) in S^3_5"[128X[104X487[4X[28X Dim=1[128X[104X488[4X[28X [128X[104X489[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X490[4X[28X [128X[104X491[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X492[4X[28X [128X[104X493[4X[28X Name="lk([ 2, 4 ]) in S^3_5"[128X[104X494[4X[28X Dim=1[128X[104X495[4X[28X [128X[104X496[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X497[4X[28X [128X[104X498[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X499[4X[28X [128X[104X500[4X[28X Name="lk([ 2, 5 ]) in S^3_5"[128X[104X501[4X[28X Dim=1[128X[104X502[4X[28X [128X[104X503[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X504[4X[28X [128X[104X505[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X506[4X[28X [128X[104X507[4X[28X Name="lk([ 3, 4 ]) in S^3_5"[128X[104X508[4X[28X Dim=1[128X[104X509[4X[28X [128X[104X510[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X511[4X[28X [128X[104X512[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X513[4X[28X [128X[104X514[4X[28X Name="lk([ 3, 5 ]) in S^3_5"[128X[104X515[4X[28X Dim=1[128X[104X516[4X[28X [128X[104X517[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X518[4X[28X [128X[104X519[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X520[4X[28X [128X[104X521[4X[28X Name="lk([ 4, 5 ]) in S^3_5"[128X[104X522[4X[28X Dim=1[128X[104X523[4X[28X [128X[104X524[4X[28X /SimplicialComplex] ][128X[104X525[4X[28X [128X[104X526[4X[32X[104X527528[1X4.3-4 SCStar[101X529530[29X[2XSCStar[102X( [3Xcomplex[103X, [3Xface[103X ) [32X method531[6XReturns:[106X [33X[0;10Ysimplicial complex of type [10XSCSimplicialComplex[110X upon success, [9Xfail[109X532otherwise .[133X533534[33X[0;0YComputes the star of [3Xface[103X (a face given as a list of vertices or a scalar535interpreted as vertex) in a polyhedral complex [3Xcomplex[103X, i. e. the set of536facets of [3Xcomplex[103X that contain [3Xface[103X.[133X537538[4X[32X Example [32X[104X539[4X[28X gap> SCLib.SearchByName("RP^2"); [128X[104X540[4X[28X [ [ 3, "RP^2 (VT)" ], [ 635, "RP^2xS^1" ] ][128X[104X541[4X[28X gap> rp2:=SCLib.Load(last[1][1]);;[128X[104X542[4X[28X gap> SCVertices(rp2);[128X[104X543[4X[28X [ 1, 2, 3, 4, 5, 6 ][128X[104X544[4X[28X gap> SCStar(rp2,1);[128X[104X545[4X[28X [SimplicialComplex[128X[104X546[4X[28X [128X[104X547[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X548[4X[28X [128X[104X549[4X[28X Name="star([ 1 ]) in RP^2 (VT)"[128X[104X550[4X[28X Dim=2[128X[104X551[4X[28X [128X[104X552[4X[28X /SimplicialComplex][128X[104X553[4X[28X gap> last.Facets;[128X[104X554[4X[28X [ [ 1, 2, 3 ], [ 1, 2, 6 ], [ 1, 3, 5 ], [ 1, 4, 5 ], [ 1, 4, 6 ] ][128X[104X555[4X[28X [128X[104X556[4X[32X[104X557558[1X4.3-5 SCStars[101X559560[29X[2XSCStars[102X( [3Xcomplex[103X, [3Xk[103X ) [32X method561[6XReturns:[106X [33X[0;10Ya list of simplicial complexes of type [10XSCSimplicialComplex[110X upon562success, [9Xfail[109X otherwise.[133X563564[33X[0;0YComputes the star of all [3Xk[103X-faces of the polyhedral complex [3Xcomplex[103X and565returns them as a list of simplicial complexes. Internally calls [2XSCStar[102X566([14X4.3-4[114X) for every [3Xk[103X-face of [3Xcomplex[103X.[133X567568[4X[32X Example [32X[104X569[4X[28X gap> SCLib.SearchByName("T^2"){[1..6]};[128X[104X570[4X[28X [ [ 4, "T^2 (VT)" ], [ 5, "T^2 (VT)" ], [ 9, "T^2 (VT)" ], [ 10, "T^2 (VT)" ],[128X[104X571[4X[28X [ 18, "T^2 (VT)" ], [ 20, "(T^2)#2" ] ][128X[104X572[4X[28X gap> torus:=SCLib.Load(last[1][1]);; # the minimal 7-vertex torus[128X[104X573[4X[28X gap> SCStars(torus,0); # 7 2-discs as vertex stars[128X[104X574[4X[28X [ [SimplicialComplex[128X[104X575[4X[28X [128X[104X576[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X577[4X[28X [128X[104X578[4X[28X Name="star([ 1 ]) in T^2 (VT)"[128X[104X579[4X[28X Dim=2[128X[104X580[4X[28X [128X[104X581[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X582[4X[28X [128X[104X583[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X584[4X[28X [128X[104X585[4X[28X Name="star([ 2 ]) in T^2 (VT)"[128X[104X586[4X[28X Dim=2[128X[104X587[4X[28X [128X[104X588[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X589[4X[28X [128X[104X590[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X591[4X[28X [128X[104X592[4X[28X Name="star([ 3 ]) in T^2 (VT)"[128X[104X593[4X[28X Dim=2[128X[104X594[4X[28X [128X[104X595[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X596[4X[28X [128X[104X597[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X598[4X[28X [128X[104X599[4X[28X Name="star([ 4 ]) in T^2 (VT)"[128X[104X600[4X[28X Dim=2[128X[104X601[4X[28X [128X[104X602[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X603[4X[28X [128X[104X604[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X605[4X[28X [128X[104X606[4X[28X Name="star([ 5 ]) in T^2 (VT)"[128X[104X607[4X[28X Dim=2[128X[104X608[4X[28X [128X[104X609[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X610[4X[28X [128X[104X611[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X612[4X[28X [128X[104X613[4X[28X Name="star([ 6 ]) in T^2 (VT)"[128X[104X614[4X[28X Dim=2[128X[104X615[4X[28X [128X[104X616[4X[28X /SimplicialComplex], [SimplicialComplex[128X[104X617[4X[28X [128X[104X618[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X619[4X[28X [128X[104X620[4X[28X Name="star([ 7 ]) in T^2 (VT)"[128X[104X621[4X[28X Dim=2[128X[104X622[4X[28X [128X[104X623[4X[28X /SimplicialComplex] ][128X[104X624[4X[28X [128X[104X625[4X[32X[104X626627628629