Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
match first letter proper
  • Loading branch information
hyphaltip committed Apr 26, 2012
1 parent b216938 commit 493c4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/Tree/Tree.pm
Expand Up @@ -204,7 +204,7 @@ sub get_nodes{
my @children;
my $node = $self->get_root_node || return undef;

if ($order =~ m/^b$/oi) {
if ($order =~ m/^b/oi) { # breadth-first
@children = ($node);
my @to_process = ($node);
while( @to_process ) {
Expand All @@ -213,7 +213,7 @@ sub get_nodes{
push @children, @c;
push @to_process, @c;
}
} elsif ($order =~ m/^d$/oi) {
} elsif ($order =~ m/^d/oi) { # depth-first
# this is depth-first search I believe
@children = ($node,$node->get_all_Descendents($sortby));
} else {
Expand Down

0 comments on commit 493c4cc

Please sign in to comment.