internal static GeometryGraph CreatePhyloTree(PhylogeneticTree drawingTree)
 {
     Microsoft.Msagl.PhyloTree phyloTree = new Microsoft.Msagl.PhyloTree();
     FillPhyloTree(drawingTree, phyloTree);
     AssignLengthsToGeometryEdges(phyloTree);
     return(phyloTree);
 }
 private static void AssignLengthsToGeometryEdges(Microsoft.Msagl.PhyloTree phyloTree)
 {
     foreach (Microsoft.Msagl.PhyloEdge msaglEdge in phyloTree.Edges)
     {
         PhyloEdge drawingEdge = msaglEdge.UserData as PhyloEdge;
         msaglEdge.Length = drawingEdge.Length;
     }
 }