in reply to Re: Re: Path computation for SQL generation
in thread Path computation for SQL generation
Is there a path from X to Y and, if there is, give me the elements I traverse.
Update: After playing around a bunch, I found the following:
my $SSSP = $graph->SSSP_Dijkstra($start); my %attrs = $graph->get_attributes($end); my $path = $attrs{path}; die "No path found\n" if !defined $path; print "Path: @$path\n";
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|