Goto Chapter: Top 1 2 3 4 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

1 Quivers
 1.1 GAP categories
 1.2 Constructors
 1.3 Attributes

1 Quivers

1.1 GAP categories

1.1-1 IsFinQuiver
‣ IsFinQuiver( q )( filter )

Returns: true or false

The GAP category of quivers.

1.1-2 IsFinQuiverObject
‣ IsFinQuiverObject( v )( filter )

Returns: true or false

The GAP category of objects in a quiver.

1.1-3 IsFinQuiverMorphism
‣ IsFinQuiverMorphism( alpha )( filter )

Returns: true or false

The GAP category of morphisms in a quiver.

1.2 Constructors

1.2-1 FinQuiver
‣ FinQuiver( q_datum )( function )

Returns: a CAP quiver

Construct a CAP quiver out of the q_datum which is specified as follows:

gap> LoadPackage( "FpCategories", false );
true
gap> str :=
>   "q(0..5)[x:0->0,s:0->1,a:1->2,c:1->3,e:1->4,b:2->4,d:3->4,t:4->5,y:5->5]";;
gap> q := FinQuiver( str );
FinQuiver( "q(0,1,2,3,4,5)[x:0-≻0,s:0-≻1,a:1-≻2,c:1-≻3,e:1-≻4,b:2-≻4,d:3-≻4,
t:4-≻5,y:5-≻5]" )
gap> QuiverName( q );
"q"
gap> NumberOfObjects( q );
6
gap> LabelsOfObjects( q );
[ "0", "1", "2", "3", "4", "5" ]
gap> SetOfObjects( q );
[ (0), (1), (2), (3), (4), (5) ]
gap> o := q.0;
(0)
gap> ObjectIndex( o );
1
gap> IsIdenticalObj( o, ObjectConstructor( q, 1 ) );
true
gap> ObjectLabel( o );
"0"
gap> LaTeXOutput( o );
"0"
gap> NumberOfMorphisms( q );
9
gap> LabelsOfMorphisms( q );
[ "x", "s", "a", "c", "e", "b", "d", "t", "y" ]
gap> IndicesOfSources( q );
[ 1, 1, 2, 2, 2, 3, 4, 5, 6 ]
gap> IndicesOfTargets( q );
[ 1, 2, 3, 4, 5, 5, 5, 6, 6 ]
gap> SetOfMorphisms( q );
[ x:(0) -≻ (0), s:(0) -≻ (1), a:(1) -≻ (2), c:(1) -≻ (3), e:(1) -≻ (4),
  b:(2) -≻ (4), d:(3) -≻ (4), t:(4) -≻ (5), y:(5) -≻ (5) ]
gap> m := q.y;
y:(5) -≻ (5)
gap> MorphismIndex( m );
9
gap> IsIdenticalObj( m, MorphismConstructor( q, q.("5"), 9, q.("5") ) );
true
gap> MorphismLabel( m );
"y"
gap> LaTeXOutput( m );
"{5}-\\left({y}\\right)\\rightarrow{5}"
gap> MorphismsOfExternalHom( q.("0"), q.("0") );
[ x:(0) -≻ (0) ]
gap> MorphismsOfExternalHom( q.("0"), q.("1") );
[ s:(0) -≻ (1) ]
gap> q_op := OppositeQuiver( q );
FinQuiver( "q_op(0,1,2,3,4,5)[x:0-≻0,s:1-≻0,a:2-≻1,c:3-≻1,e:4-≻1,b:4-≻2,
d:4-≻3,t:5-≻4,y:5-≻5]" )
gap> MorphismsOfExternalHom( q_op.1, q_op.0 );
[ s:(1) -≻ (0) ]
gap> q_op_x_q := TensorProductOfFinQuivers( q_op, q );;
gap> NumberOfObjects( q_op_x_q );
36
gap> NumberOfMorphisms( q_op_x_q );
108
gap> q1 := RandomFinQuiver( 2, 4, false );; # without loops
gap> q2 := RandomFinQuiver( 2, 4, true );;  # with loops
gap> Assert( 0, NumberOfObjects( q1 ) = 2 );
gap> Assert( 0, NumberOfMorphisms( q1 ) = 4 );
gap> Assert( 0, Length( Filtered( SetOfMorphisms( q1 ), IsEndomorphism ) ) = 0 );
gap> Assert( 0, Length( Filtered( SetOfMorphisms( q2 ), IsEndomorphism ) ) > 0 );
gap> q3 := FinQuiver( "q(3)[a:1->2,b:2->3]" );
FinQuiver( "q(1,2,3)[a:1-≻2,b:2-≻3]" )
gap> q4 := FinQuiver( "q(4..6)[a:4->5,b:5->6]" );
FinQuiver( "q(4,5,6)[a:4-≻5,b:5-≻6]" )

1.2-2 ObjectConstructor
‣ ObjectConstructor( C, i )( operation )

Returns: a CAP category object

The input is a CAP quiver \(q\) and a positive integer i. The output is the i'th object in q.

1.2-3 MorphismConstructor
‣ MorphismConstructor( C, s, i, t )( operation )

Returns: a CAP category object

The input is a CAP quiver \(q\), an object s, a positive integer i and an object t. The output is the i'th morphism in q (whose source is s and target is t).

1.2-4 RandomFinQuiver
‣ RandomFinQuiver( nr_objs, nr_mors, has_loops )( function )

Returns: a CAP quiver

The outout is a random quiver consisting of nr_objs objects and nr_mors morphisms and has loops only if has_loops = true.

1.2-5 TensorProductOfFinQuivers
‣ TensorProductOfFinQuivers( q1, q2 )( operation )

Returns: a CAP quiver

Returns the tensor product of q1 and q2.

1.3 Attributes

1.3-1 QuiverDatum
‣ QuiverDatum( q )( attribute )

Returns: a list

Returns the quiver datum of the quiver q.

1.3-2 QuiverName
‣ QuiverName( q )( attribute )

Returns: a list

Returns the name of the quiver q.

1.3-3 NumberOfObjects
‣ NumberOfObjects( q )( attribute )

Returns: a positive integer

Returns the number of objects in the quiver q.

1.3-4 LabelsOfObjects
‣ LabelsOfObjects( q )( attribute )

Returns: a list

Returns the labels of all objects in the quiver q.

1.3-5 LaTeXStringsOfObjects
‣ LaTeXStringsOfObjects( q )( attribute )

Returns: a list

Returns the LaTeX-strings of all objects in the quiver q.

1.3-6 NumberOfMorphisms
‣ NumberOfMorphisms( q )( attribute )

Returns: a positive integer

Returns the number of morphisms in the quiver q.

1.3-7 LabelsOfMorphisms
‣ LabelsOfMorphisms( q )( attribute )

Returns: a list

Returns the labels of all morphisms in the quiver q.

1.3-8 LaTeXStringsOfMorphisms
‣ LaTeXStringsOfMorphisms( q )( attribute )

Returns: a list

Returns the LaTeX-strings of all morphisms in the quiver q.

1.3-9 IndicesOfSources
‣ IndicesOfSources( q )( attribute )

Returns: a list

Returns the indices of sources of all morphisms in the quiver q.

1.3-10 IndicesOfTargets
‣ IndicesOfTargets( q )( attribute )

Returns: a list

Returns the indices of targets of all morphisms in the quiver q.

1.3-11 IndicesPairsOfCompatibleMorphisms
‣ IndicesPairsOfCompatibleMorphisms( q )( attribute )

Returns: a list

Returns the indices of all paris of morphisms where the target of the first morphism equals the source of the second morphism.

1.3-12 SetOfObjects
‣ SetOfObjects( q )( attribute )

Returns: a list of CAP quiver objects

Returns the set of objects of q.

1.3-13 SetOfMorphisms
‣ SetOfMorphisms( q )( attribute )

Returns: a list of CAP quiver morphisms

Returns the set of morphisms of q.

1.3-14 ExternalHoms
‣ ExternalHoms( q )( attribute )

Returns: a list of CAP quiver morphisms

Returns a list of lists where the entry at \([i,j]\) is the set of morphism from the \(i\)'th object to the \(j\)'th object in q.

1.3-15 OppositeQuiver
‣ OppositeQuiver( q )( attribute )

Returns: CAP quiver

Returns the opposite quiver of q.

1.3-16 ObjectIndex
‣ ObjectIndex( v )( attribute )

Returns: a positive integer

Returns the index of the object v.

1.3-17 ObjectLabel
‣ ObjectLabel( v )( attribute )

Returns: a string

Returns the label of the object v.

1.3-18 UnderlyingFinQuiver
‣ UnderlyingFinQuiver( v )( attribute )

Returns: a CAP quiver

Returns the quiver containing the object v.

1.3-19 MorphismIndex
‣ MorphismIndex( alpha )( attribute )

Returns: a positive integer

Returns the index of the morphism alpha.

1.3-20 MorphismLabel
‣ MorphismLabel( alpha )( attribute )

Returns: a string

Returns the label of the morphism alpha.

1.3-21 UnderlyingFinQuiver
‣ UnderlyingFinQuiver( alpha )( attribute )

Returns: a CAP quiver

Returns the quiver containing the morphism alpha.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 Ind

generated by GAPDoc2HTML