Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reduce the size of mate.

  • Loading branch information...
commit 53f24e45a457522bcb61a8169bc3be02f8d5f77f 1 parent e01604d
@hiratara authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Algorithm/Simpath.pm
View
6 lib/Algorithm/Simpath.pm
@@ -8,11 +8,7 @@ our @EXPORT = qw(solve);
sub low_node($$) {
my ($node, $grid_edge) = @_;
- my %mate = %{$node->{mate}};
- my $next_grid_node = $grid_edge->[1];
- $mate{$next_grid_node} = $next_grid_node unless exists $mate{$next_grid_node};
-
- {mate => \%mate};
+ {mate => $node->{mate}};
}
sub high_node($$) {
Please sign in to comment.
Something went wrong with that request. Please try again.