Skip to content

Commit 6f2009c

Browse files
authored
Merge pull request #14 from jw-allen/v6.2
v0.6.2
2 parents 3f08d03 + 09daf16 commit 6f2009c

File tree

11 files changed

+1498
-269
lines changed

11 files changed

+1498
-269
lines changed

README

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+--------------------------------------------------------+--------------------+
22
| | Copyright (C) 2020 |
3-
| SBStrips (v0.6.1) | Joe Allen |
3+
| SBStrips (v0.6.2) | Joe Allen |
44
| | [he/him/his] |
55
+--------------------------------------------------------+--------------------+
66

7-
This is the README file for SBStrips (v0.6.1), which is a package for GAP 4.11.
7+
This is the README file for SBStrips, which is a package for GAP 4.11.
88

99
+--+ About +------------------------------------------------------------------+
1010
The SBStrips package models 'strings', namely the decorated graphs used in
@@ -28,9 +28,9 @@ The SBStrips can be installed by following these steps (assuming you already
2828
have GAP installed.)
2929

3030
1. Download the archive file
31-
sbstrips/archive/v0.6.1.tar.gz
31+
sbstrips/archive/v0.6.2.tar.gz
3232
from
33-
https://github.com/jw-allen/sbstrips/archive/v0.6.1.tar.gz
33+
https://github.com/jw-allen/sbstrips/archive/v0.6.2.tar.gz
3434

3535
2. Unpack it into your pkg directory. It should create a subdirectory
3636
called sbstrips.

doc/main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!ENTITY QPA "<Package>QPA</Package>">
1414
<!ENTITY SBStrips "<Package>SBStrips</Package>">
1515
<!ENTITY true "<K>true</K>">
16-
<!ENTITY VERSION "0.6.1">
16+
<!ENTITY VERSION "0.6.2">
1717
]
1818
>
1919

lib/1reg.gd

+15
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,18 @@ DeclareOperation( "PathBySourceAndLength", [ IsQuiverVertex, IsInt ] );
9797
## </ManSection>
9898
## <#/GAPDoc>
9999
DeclareOperation( "PathByTargetAndLength", [ IsQuiverVertex, IsInt ] );
100+
101+
## <#GAPDoc Label="DocIs2RegQuiver">
102+
## <ManSection>
103+
## <Prop Name="Is2RegQuiver" Arg="quiver"/>
104+
## <Description>
105+
## Argument: <A>quiver</A>, a quiver
106+
## <Br />
107+
## </Description>
108+
## <Returns>
109+
## either <C>true</C> or <C>false</C>, depending on whether or not
110+
## <A>quiver</A> is <M>2</M>-regular.
111+
## </Returns>
112+
## </ManSection>
113+
## <#/GAPDoc>
114+
DeclareProperty( "Is2RegQuiver", IsQuiver );

lib/1reg.gi

+22
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ InstallMethod(
2020
end
2121
);
2222

23+
InstallMethod(
24+
Is2RegQuiver,
25+
"for quivers",
26+
[IsQuiver],
27+
function( quiver )
28+
local
29+
v, # Vertex variable
30+
verts; # Vertices of <quiver>
31+
32+
# Test vertex degrees
33+
verts := VerticesOfQuiver( quiver );
34+
35+
for v in verts do
36+
if InDegreeOfVertex( v ) <> 2 or OutDegreeOfVertex( v ) <> 2 then
37+
return false;
38+
fi;
39+
od;
40+
41+
return true;
42+
end
43+
);
44+
2345
InstallMethod(
2446
1RegQuivIntActionFunction,
2547
"for 1-regular quivers",

0 commit comments

Comments
 (0)