Macaulay2 » Documentation
Packages » PhylogeneticTrees :: isIsomorphic
next | previous | forward | backward | up | index | toc

isIsomorphic -- check isomorphism of two tree

Synopsis

Description

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

For the programmer

The object isIsomorphic is a method function.