From daba44bc0993ecc2653eeb876183bde1a00597e7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 21 Jun 2009 14:01:40 -0500 Subject: vertices() and edges() require a vertex argument --- lib/Graph/Implicit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Graph/Implicit.pm b/lib/Graph/Implicit.pm index b9a3556..9d8c43c 100644 --- a/lib/Graph/Implicit.pm +++ b/lib/Graph/Implicit.pm @@ -15,8 +15,8 @@ Graph::Implicit - graph algorithms for implicitly specified graphs map { [$_, $_->intrinsic_cost] } $tile->grep_adjacent(sub { $_[0]->is_walkable }) }); - my @reachable_vertices = $graph->vertices; - my @reachable_edges = $graph->edges; + my @reachable_vertices = $graph->vertices(current_tile()); + my @reachable_edges = $graph->edges(current_tile()); my ($sssp_predecessors, $dest_vertex) = $graph->dijkstra( current_tile(), sub { is_target($_[0]) ? 'q' : 0 }, -- cgit v1.2.3-54-g00ecf