B::OptreeShortestPath - The great new B::OptreeShortestPath!


B-OptreeShortestPath documentation  | view source Contained in the B-OptreeShortestPath distribution.

Index


NAME

Top

B::OptreeShortestPath - The great new B::OptreeShortestPath!

VERSION

Top

Version 0.02

DESCRIPTION

Top

This module adds the methods ->shortest_path( $op ) and ->all_paths() to all B::OP objects in an optree.

SYNOPSIS

Top

    use B qw( main_root main_start );
    use B::OptreeShortestPath;

    for ( main_start()->shortest_path( main_root() ) ) {
        print "$_\n";
    }

METHODS

Top

$op->shortest_path( $other_op )

Returns a list of the shortest paths from $op to $other_op. Each path is a string approximating a bunch of chained method calls.

 "->next->sibling->next",
 "->sibling->sibling->next"

$op->all_paths()

Returns a list of paths from this node to all other nodes.

AUTHOR

Top

Joshua ben Jore, <twists@gmail.com>

BUGS

Top

Please report any bugs or feature requests to bug-b-optreeshortestpath@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=B-OptreeShortestPath. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


B-OptreeShortestPath documentation  | view source Contained in the B-OptreeShortestPath distribution.