Advanced maths

Association scheme calculator with intersection numbers and adjacency algebra

Validate a complete symmetric relation-color matrix and compute all intersection numbers p_ij^k and adjacency-algebra products.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Validate a complete symmetric relation-color matrix and compute all intersection numbers p_ij^k and adjacency-algebra products. An equitable vertex partition neither specifies nor validates pairwise relation classes.

THE FORMULApᵏᵢⱼ=#{z:R(x,z)=i,R(z,y)=j} for R(x,y)=k; AᵢAⱼ=ΣₖpᵏᵢⱼAₖ.

A worked example

Color pairs of a six-cycle by graph distance 0,1,2,3. The relation valencies are [1,2,2,1]; two adjacent vertices have exactly one intermediate point at distances 1 and 2, so p¹₁₂=1.

Good to know

Symmetric association schemes only; 2–16 points, 1–6 nonidentity relation colors; diagonal color zero and each color used. Integer exact counts; spectral eigenmatrices deferred.

Relations on ordered point pairs

The input assigns a relation color to every ordered pair of points. In this symmetric version, reversing a pair preserves its color, and color zero occurs exactly on the diagonal.

Every declared color must occur. A collection of individually plausible colored graphs becomes an association scheme only when the required intersection counts are constant across all pairs of each relation.

Association scheme calculator with intersection numbers and adjacency algebra worked exampleSix-cycle distance scheme012345Relation valencies: 1, 2, 2, 1
Scroll across to see the full diagram.
Color pairs of a six-cycle by graph distance 0,1,2,3. The relation valencies are [1,2,2,1]; two adjacent vertices have exactly one intermediate point at distances 1 and 2, so p¹₁₂=1.

Compare this with the Coarsest equitable graph partition calculator. Validate a complete symmetric relation-color matrix and compute all intersection numbers p_ij^k and adjacency-algebra products. An equitable vertex partition neither specifies nor validates pairwise relation classes.

Symmetric-scheme axioms

For fixed colors i and j, count points z reached from x in relation i and then from z to y in relation j. The number may depend on the relation k of x and y.

It must not depend on the particular pair carrying color k. Two such pairs with different counts form a direct failure witness, identifying the colors and points responsible for invalidity. The cycle-distance coloring on six points illustrates relations richer than adjacent versus nonadjacent. Color zero belongs only to the diagonal, while other colors classify ordered pairs symmetrically by their circular distance. For any pair in relation k, p_ij^k counts intermediate points z whose first relation is i and second relation is j. The association-scheme condition requires that count to depend on k alone, not on the particular pair chosen. Thus a relation coloring with balanced class sizes can still fail the defining intersection test.

Valencies and constant local counts

The number of neighbors in each relation is its valency. Constancy of the intersection numbers enforces uniform local behavior, so different vertices cannot have different valencies for one relation.

The identity relation has valency one. The sum of all relation valencies must equal the number of points, because the relation classes partition every row of the complete pair table.

Computing intersection numbers

Each color has a zero-one adjacency matrix Aᵢ. Its product with Aⱼ counts the same intermediate points, and the intersection constants express that product as a linear combination of the relation matrices.

Checking AᵢAⱼ=ΣₖpᵏᵢⱼAₖ entry by entry is an independent audit of the returned multiplication table. All quantities in this initial output are exact integers. When validation succeeds, the adjacency matrices multiply as A_i A_j=sum_k p_ij^k A_k. The reported coefficient list is an exact integer multiplication table for that algebra. The valency of a relation is its number of neighbors at one point, which must be consistent across points once the intersection conditions hold. The current implementation handles symmetric schemes only. It does not compute eigenmatrices, character tables or a nonsymmetric coherent-configuration decomposition merely because a relation table has been entered.

Adjacency-algebra multiplication

On the six-cycle, use colors equal to shortest-path distance. From one vertex there is itself, two distance-one vertices, two distance-two vertices and one opposite vertex, giving [1,2,2,1].

For adjacent x=0 and y=1, the distance-one neighbors of x are 1 and 5. Of these, only 5 is distance two from y, establishing p¹₁₂=1 by direct counting.

The six-cycle distance scheme

The static diagram colors the six-cycle distance classes from a chosen vertex. Its multiplication-table example concerns pair relations, rather than a partition of the vertices into color classes.

An equitable vertex partition also studies constant neighbor counts, but its input and invariants differ. It neither specifies a complete relation coloring nor validates all the two-step products needed here. A failing input returns a clear intersection-dependence error, but the present interface does not print the two conflicting pairs as a detailed witness. Check that every off-diagonal pair has exactly one nonzero color and that no declared color is unused. Refining a color changes the algebra and can break closure; it is not simply a cosmetic recoloring of the same mathematical object.

Validation failures and spectral exclusions

The initial scope is symmetric schemes supplied by their full relation matrix. Nonsymmetric coherent configurations, eigenmatrices and numerical spectral decompositions require additional conventions and are excluded.

A failed validation reports that the intersection counts depend on the selected pair. The current error does not print a conflicting pair table; inspecting the entered coloring can reveal a transcription mistake or a graph-distance coloring that lacks the required regularity.

A few questions, answered

Is every colored graph an association scheme?

No. Its relation colors must satisfy the constant intersection-count conditions as well as the basic matrix rules.

How does this differ from equitable partitions?

Equitable partitions divide vertices; association schemes divide ordered point pairs into relations.

What does an intersection number count?

It counts intermediate points z in two prescribed relations between a pair of a third prescribed relation.

Are nonsymmetric schemes supported?

The initial calculator accepts symmetric schemes only.

Find your calculator

Start typing to explore the library.