Macaulay2 » Documentation
Packages » PhylogeneticTrees :: isIsomorphic(LeafTree,LeafTree)
next | previous | forward | backward | up | index | toc

isIsomorphic(LeafTree,LeafTree) -- check isomorphism of two tree

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

Ways to use this method:


The source of this document is in PhylogeneticTrees.m2:1869:0.