Here is the code for is_isomorphic() on class FinitePoset:
if hasattr(other,'hasse_diagram'):
return . . .
else:
raise ValueError('The input is not a finite poset.')
So for example Posets.PentagonPoset().is_isomorphic("Hello everyone!")
gives the error message as it should.
But why the code doesn't directly check that `other` is of type
FinitePoset? In theory there could be some other structure using hasse
diagram at back. Is there some rationale behind this?
--
Jori Mäntysalo
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.