In a structured code of graphs, codewords are simple graphs on the same set of labeled vertices. They can be represented
by binary vectors with one coordinate for each possible edge. In a triangle code,
the symmetric difference of the edge sets
of any two distinct codewords contains a triangle graph.
In an odd-cycle code, each such difference contains a cycle of odd length (Alon et
al. 2023).
Hughes (2026) reports that both codes have maximum size 512 on seven vertices and 4096 on eight vertices. Alon et al. (2023) had already obtained the seven-vertex
odd-cycle value. Explicit linear codes over the field
of two elements attain these sizes. For the dual problems, in which each difference
must avoid the specified subgraph, the maximum size in either case is .
All subgraphs of a balanced complete bipartite
graph give a family attaining that size. The reported results come from an AI-assisted
working draft. Whether the triangle-code capacity is
for every
remains open.