examples::QuiverWithRelationsAlgebra – The algebra of the paths of a quiver modulo relations

examples::QuiverWithRelationsAlgebra implements an algebra presented with quiver (i.e. a directed graph) and admissible relations, it provides also a method that computes the dimension of the Hochschild cohomology spaces of the algebra.

→ Examples

Details:

HH – returns the dimension of the Hochschild cohomology

()::HH(Type::NonNegInt n)

Returns the dimension of the n-th Hochschild cohomology group of the implemented algebra.

Example 1:

For this example we will take the algebra math with quiver math equal to the following graph:

theGraph := [ 5, table(a1 = [1, 2], a2 = [2, 3], a3 = [3, 4], a4 = [4, 5], b = [2, 4], c = [1, 5])]:

 

And for the generating list of math we will take the following list:

theRel := [

     [[1, [3, a2, a1, 1]]],

     [[1, [4, b, a1, 1]]],

     [[1, [4, a3, a2, 2]]],

     [[1, [5, a4, b, 2]]],

     [[1, [5, a4, a3, 3]]]

             ]:

 

This means that math is generated by the set of paths math.

Let us now set math to be the algebra with quiver and relations as above:

alg := examples::QuiverWithRelationsAlgebra(theGraph, theRel):

 

We now can compute the dimension of the Hochschild cohomology spaces:

alg::HH(0)

math

The space math has dimension math.

alg::HH(1)

math

The space math has dimension math.

alg::HH(2)

math

The space math has dimension math.

alg::HH(3)

math

The space math has dimension math.

alg::HH(4)

math

The space math has dimension math.

Example 2:

Let us take the algebra math with quiver math equal to the following graph:

theGraph := [

     3,

     table(

   a1 = [3, 2],

   a2 = [2, 1],

   b1 = [3, 2],

   b2 = [2, 1]

  )

    ]:

 

And for the generating list of math we will take the following list:

theRel   := [

     [[1, [1, a2, a1, 3]], [-1, [1, b2, b1, 3]]],

     [[1, [1, a2, b1, 3]], [-1, [1, b2, a1, 3]]]

    ]:

 

This means that I= a2 a1 - b2 b1, a2 b1 - b2 a1.

Let us now set math to be the algebra with quiver and relations as above:

alg := examples::QuiverWithRelationsAlgebra(theGraph, theRel):

 

We now can compute the dimension of the Hochschild cohomology spaces:

alg::HH(0)

math

The space math has dimension math.

alg::HH(1)

math

The space math has dimension math.

alg::HH(2)

math

The space math has dimension math.

alg::HH(3)

math

The space math has dimension math.

Changes in MuPAD 3.2

New Function.