30 x 30 dense matrix over Integer Ring (type 'print m.str()' to see all of the entries)
Traceback (most recent call last):
File "", line 1, in <module>
File "/tmp/tmpiWsdgI/___code___.py", line 10, in <module>
exec compile(u'diameter(m)
File "", line 1, in <module>
NameError: name 'diameter' is not defined