next | previous | forward | backward | up | top | index | toc | Macaulay2 website
PhylogeneticTrees :: isIsomorphic

isIsomorphic -- check isomorphism of two tree



This function checks if two objects of class LeafTree are isomorphic to each other as unlabeled graphs. This is in contrast to equality of two objects of class LeafTree, which also checks whether they have the same leaf labeling.

i1 : T = leafTree(4,{{0,1}});
i2 : U = leafTree(4,{{1,2}});
i3 : isIsomorphic(T,U)

o3 = true

Ways to use isIsomorphic :

For the programmer

The object isIsomorphic is a method function.