TOPICS
Search

Graph Code


In a structured code of graphs, codewords are simple graphs on the same set of n 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 2^(|_n^2/4_|). 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 2^((n; 2)-|_n^2/4_|) for every n>=9 remains open.


See also

Linear Code, Symmetric Difference, Triangle-Free Graph

Explore with Wolfram|Alpha

References

Alon, N.; Gujgiczer, A.; Körner, J.; Milojević, A.; and Simonyi, G. "Structured Codes of Graphs." SIAM J. Discrete Math. 37, 379-403, 2023. https://arxiv.org/abs/2202.06810.Hughes, T. B. "Triangle Codes of Graphs: Exact Values on Seven and Eight Vertices, and the Dual Problem on n Vertices." Palomar Registry, Nov. 28, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-28-000076&version=1.

Cite this as:

Weisstein, Eric W. "Graph Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GraphCode.html

Subject classifications