I just play a little with Python. I think others might also benefit on
this when testing corner cases like 0x0 or 1x1 matrices, 1-element groups
and so on.
G = Graph()
known_kaboom = ['is_prime', 'layout_graphviz']
errors = []
for f in [y for y in dir(G) if y[0] != '_']:
if f in known_kaboom:
continue
try:
attrcall(f)(G)
except TypeError as e:
if "takes exactly" in e.message:
continue
except Exception as e:
print(f, e)
print
errors.append(f)
continue
errors
(This found that for example is_triangle_free() and is_cayley() fails.
known_kaboom is needed as for example is_prime() don't just throw an
exception, it stops the whole workseet.)
--
Jori Mäntysalo