Skip to content

Commit a91ebcc

Browse files
committed
quick fix for the missing level in the holonomy when there is no singleton image
1 parent 6621d1b commit a91ebcc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/skeleton.gi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ end);
295295
InstallMethod(DepthOfSkeleton,
296296
"for a skeleton (SgpDec)", [IsSkeleton],
297297
function(sk)
298-
return Maximum(Depths(sk));
298+
#quick fix for losing one level due to nonimage singletons
299+
if Size(BaseSet(sk)) = Length(NonImageSingletons(sk)) then
300+
return Maximum(Depths(sk)) + 1;
301+
else
302+
return Maximum(Depths(sk));
303+
fi;
299304
end);
300305

301306
#returns the representative element of the scc of a finiteset

tst/skeleton.tst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ gap> ImageWitness(sk, FiniteSet([5]), FiniteSet([1..5]));
4040
#testing for a semigroup with no singleton image - they should not be reported in the depth
4141
gap> sk := Skeleton(Semigroup(Transformation([4,2,4,4])));;
4242
gap> DepthOfSkeleton(sk);
43-
2
43+
3
4444
gap> TilesOf(sk, FiniteSet([1,3],4));
4545
fail
4646

0 commit comments

Comments
 (0)