Square-Free Graph

DOWNLOAD Mathematica Notebook Square-FreeGraphs

A square-free graph is a graph containing no graph cycles of length four. A simple graph is square-free iff

 c_4=1/8[Tr(A^4)-2m-2sum_(i!=j)a_(ij)^((2))]=0,

where A is the adjacency matrix of the graph, Tr is the matrix trace, m is the number of edges of the graph, and a_(ij)^((k)) denotes the i,j element of A^k.

The numbers of square-free simple graphs on n=1, 2, 3, ... nodes are 1, 2, 4, 8, 18, 44, 117, 351, ... (OEIS A006786), the first few of which are illustrated above.

Square-FreeConnectedGraphs

The numbers of square-free simple connected graphs on n=1, 2, 3, ... nodes are 1, 1, 2, 3, 8, 19, 57, ... (OEIS A077269), the first few of which are illustrated above.

Graphs with girth >4 are automatically square-free, while square-free graphs with girth 3 are rarer.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.