private string PrintTreeRecursive(PhyloTreeNode node, int depthLevel) { string partialString = new string(' ', depthLevel); List <PhyloTreeNode> children = node.GetChildrenNodes(); partialString += $"-{node.GetNodeSequence()}; Edge: {node.creationTime}ms\n"; foreach (var childNode in children) { partialString += this.PrintTreeRecursive(childNode, depthLevel + 1); } return(partialString); }