Skip to content

Path Algebras ​

A quiver is a directed multigraph — vertices, and arrows between them, with loops and parallel arrows allowed. Its path algebra kQkQ has a basis of all directed paths, one trivial path eve_v per vertex included, and the product is concatenation:

p⋅q={pqif q starts where p ends0otherwisep \cdot q = \begin{cases} pq & \text{if } q \text{ starts where } p \text{ ends} \\ 0 & \text{otherwise}\end{cases}

Like the incidence algebra, most products are zero. Unlike every other family here, this one need not be finite-dimensional.

One loop and the algebra is infinite ​

kQkQ is finite-dimensional exactly when QQ is acyclic. A single loop gives the paths e,a,a2,a3,…e, a, a^2, a^3, \ldots — the Jordan quiver, whose path algebra is the polynomial ring k[x]k[x]. There is no finite basis and no dimension, so Basis and AlgebraDimension have nothing to return and leave the call standing rather than enumerating forever.

Acyclic or not

The linear quiver is acyclic and has a dimension; the Jordan quiver has a loop, so its dimension does not exist and the call stays put.

InQuiverIsAcyclic(LinearQuiver(4))\mathrm{QuiverIsAcyclic}(\mathrm{LinearQuiver}(4))OutTrue\mathrm{True}InQuiverIsAcyclic(JordanQuiver)\mathrm{QuiverIsAcyclic}(\mathrm{JordanQuiver})OutFalse\mathrm{False}InAlgebraDimension(PathAlgebra(LinearQuiver(4)))\mathrm{AlgebraDimension}(\mathrm{PathAlgebra}(\mathrm{LinearQuiver}(4)))Out1010InAlgebraDimension(PathAlgebra(JordanQuiver))\mathrm{AlgebraDimension}(\mathrm{PathAlgebra}(\mathrm{JordanQuiver}))OutAlgebraDimension(PathAlgebra(JordanQuiver))\mathrm{AlgebraDimension}(\mathrm{PathAlgebra}(\mathrm{JordanQuiver}))
source · editable

That distinction is the whole reason this family is worth having next to the others: every previous one was finite by construction, and this is the first place where "there is no answer" is a structural fact about the input rather than a missing feature.

Aₙ's path algebra is a chain's incidence algebra ​

The linear quiver 1→2→…→n1 → 2 → \ldots → n has exactly one path from ii to jj when i≤ji ≤ j, and none otherwise. So its paths are the intervals of a chain, and kAnkA_n is the incidence algebra of Chain(n) — same dimension (n+12)\binom{n+1}{2}, same product, two libraries describing one object from different directions.

The same algebra, twice

Both are C(7,2) = 21.

InAlgebraDimension(PathAlgebra(LinearQuiver(6)))\mathrm{AlgebraDimension}(\mathrm{PathAlgebra}(\mathrm{LinearQuiver}(6)))Out2121InAlgebraDimension(IncidenceAlgebra(Chain(6)))\mathrm{AlgebraDimension}(\mathrm{IncidenceAlgebra}(\mathrm{Chain}(6)))Out2121
source · editable

The path count is verified a second way in the tests, against powers of the adjacency matrix: paths of length ℓℓ are the entries of AℓA^ℓ, and an acyclic quiver on nn vertices has none longer than n−1n-1. Enumeration and linear algebra agree.

Composition, and zero ​

Concatenate or annihilate

1→2 then 2→3 composes. The other order does not meet, so it is zero — not an error.

InQuiverCompose(LinearQuiver(4),QuiverPath(1,[0]),QuiverPath(2,[1]))\mathrm{QuiverCompose}(\mathrm{LinearQuiver}(4), \mathrm{QuiverPath}(1, \bigl\lbrack0\bigr\rbrack), \mathrm{QuiverPath}(2, \bigl\lbrack1\bigr\rbrack))OutQuiverPath(1,[0,1])\mathrm{QuiverPath}(1, \bigl\lbrack0, 1\bigr\rbrack)InQuiverCompose(LinearQuiver(4),QuiverPath(2,[1]),QuiverPath(1,[0]))\mathrm{QuiverCompose}(\mathrm{LinearQuiver}(4), \mathrm{QuiverPath}(2, \bigl\lbrack1\bigr\rbrack), \mathrm{QuiverPath}(1, \bigl\lbrack0\bigr\rbrack))Out00
source · editable

A path is written QuiverPath(start, [arrow indices]), so the trivial path at vv is QuiverPath(v, []). Those trivial paths are the local identities:

estart p  =  p  =  p eend,e_{\text{start}}\,p \;=\; p \;=\; p\,e_{\text{end}},

and together they sum to the identity of the algebra.

Parallel arrows are distinct ​

Quiver(n, [[from,to],…]) builds one explicitly, and arrows are indexed by position — so two arrows with the same endpoints are two different basis elements. The Kronecker quiver is the smallest example: two vertices, two parallel arrows, four paths.

The Kronecker quiver

Four paths: two trivial, two arrows. The two arrows do not compose with each other, so their product is zero.

InAlgebraDimension(PathAlgebra(Quiver(2,[[1,2],[1,2]])))\mathrm{AlgebraDimension}(\mathrm{PathAlgebra}(\mathrm{Quiver}(2, \bigl\lbrack\bigl\lbrack1, 2\bigr\rbrack, \bigl\lbrack1, 2\bigr\rbrack\bigr\rbrack)))Out44InBasis(PathAlgebra(KroneckerQuiver))\mathrm{Basis}(\mathrm{PathAlgebra}(\mathrm{KroneckerQuiver}))Out[QuiverPath(1,[]),QuiverPath(1,[0]),QuiverPath(1,[1]),QuiverPath(2,[])]\bigl\lbrack\mathrm{QuiverPath}(1, \bigl\lbrack\bigr\rbrack), \mathrm{QuiverPath}(1, \bigl\lbrack0\bigr\rbrack), \mathrm{QuiverPath}(1, \bigl\lbrack1\bigr\rbrack), \mathrm{QuiverPath}(2, \bigl\lbrack\bigr\rbrack)\bigr\rbrack
source · editable

Things worth knowing ​

Named quivers are recognised, not declared. JordanQuiver and KroneckerQuiver are bare symbols. Declaring them as nullary functions gave them the type () -> value, which then failed PathAlgebra's value parameter — an undeclared symbol types as unknown and passes. Same lesson as the named hypercomplex algebras.

Composition takes its quiver. A path does not know which quiver it belongs to, so QuiverCompose(quiver, p, q) names it rather than riding the shared ordered product.

Not built yet. Representations of a quiver — the actual subject, and where Gabriel's theorem lives: a connected quiver has finitely many indecomposable representations exactly when its underlying graph is a Dynkin diagram of type AA, DD or EE. Also quotients by an admissible ideal, which is how a cyclic quiver is made finite-dimensional in practice.