OFFSET
1,6
COMMENTS
Here, "prime" means with respect to modular decomposition (see link).
LINKS
EXAMPLE
The smallest such graph is the cycle on 5 vertices. The 6 graphs on 6 vertices are the C6, domino, X37 (as named on GraphClasses) and their three respective complements.
PROG
(SageMath)
for n in range(3, 11):
count = 0
for g in graphs.nauty_geng(f"{n} -c -d2"):
degrees = g.degree()
if max(degrees) < n-2 and g.is_prime():
count += 1
print(f"n = {n}: {count} prime graphs")
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jim Nastos and Clara Elliott, Jul 07 2025
STATUS
approved
