Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Reymond Akpanya authored and Reymond Akpanya committed Sep 11, 2024
1 parent ef1fd39 commit 8f8ccb1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions gap/Paths/paths.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,23 @@ DeclareAttribute( "AllTwoWaistsOfComplex", IsTwistedPolygonalComplex);
#! [ ]
#! @EndExampleSession
#!
#! As another example we consider the following simplcial surface:
#! @BeginExampleSession
#! gap> umbdesc:=[ (1,4,6,7,5,3), (1,7,5,8,2,3), (1,7,6,8,2,4),(2,4,6,8,5,3) ];;
#! gap> s:=SimplicialSurfaceByUmbrellaDescriptor(umbdesc);
#! simplicial surface (4 vertices, 12 edges, and 8 faces)
#! gap> AllThreeWaistsOfComplex(s);
#! [ ( v2, E1, v3, E6, v1, E11, v2 )
#! , ( v1, E1, v4, E8, v2, E10, v1 )
#! , ( v3, E2, v2, E6, v1, E9, v3 )
#! , ( v1, E2, v4, E7, v3, E12, v1 )
#! , ( v2, E3, v4, E4, v3, E12, v2 )
#! , ( v3, E3, v4, E5, v2, E10, v3 )
#! , ( v4, E4, v1, E8, v2, E9, v4 )
#! ,
#! ( v4, E5, v1, E7, v3, E11, v4 )
#! ]
#! @EndExampleSession
#! @Returns a set of closed vertex-edge-paths
#! @Arguments complex
DeclareAttribute( "AllThreeWaistsOfComplex", IsTwistedPolygonalComplex);
Expand Down
2 changes: 1 addition & 1 deletion gap/Paths/paths.gi
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ end
InstallMethod( AllThreeWaistsOfComplex, "for a twisted polygonal complex",
[IsTwistedPolygonalComplex],
function( surface )
local w,voe1,vow2,voe3,v1,v2,v3,eof,waists,verticesOfEdges,facesOfEdges;
local w,voe1,voe2,voe3,v1,v2,v3,eof,waists,verticesOfEdges,facesOfEdges,temp;
verticesOfEdges:=VerticesOfEdges(surface);
facesOfEdges:=FacesOfEdges(surface);
waists:=Combinations(InnerEdges(surface),3);
Expand Down

0 comments on commit 8f8ccb1

Please sign in to comment.