Skip to content

Commit

Permalink
use VertexIndex instead of adhoc code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-barakat committed Apr 3, 2020
1 parent 6a99b8d commit 97a193d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gap/CatRepsWithCAP.gi
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ InstallMethod( RecordOfCategory,

function( kq )

return rec( domain := List( SetOfGeneratingMorphisms( kq ), a -> Int( String( UnderlyingVertex( Source( a ) ) ) ) ),
codomain := List( SetOfGeneratingMorphisms( kq ), a -> Int( String( UnderlyingVertex( Range( a ) ) ) ) ),
return rec( domain := List( SetOfGeneratingMorphisms( kq ), a -> VertexIndex( UnderlyingVertex( Source( a ) ) ) ),
codomain := List( SetOfGeneratingMorphisms( kq ), a -> VertexIndex( UnderlyingVertex( Range( a ) ) ) ),
);

end );
Expand Down Expand Up @@ -159,8 +159,8 @@ InstallMethod( EmbeddingOfSubRepresentation,
morphisms := List(
SetOfGeneratingMorphisms( kq ),
m ->
LiftAlongMonomorphism( eta[Int( String( UnderlyingVertex( Range( m ) ) ) )],
PreCompose( eta[Int( String( UnderlyingVertex( Source( m ) ) ) )], F( m ) ) ) );
LiftAlongMonomorphism( eta[VertexIndex( UnderlyingVertex( Range( m ) ) )],
PreCompose( eta[VertexIndex( UnderlyingVertex( Source( m ) ) )], F( m ) ) ) );

subrep := AsObjectInHomCategory( kq, objects, morphisms );

Expand Down

0 comments on commit 97a193d

Please sign in to comment.