Algorithm-SixDegrees
view release on metacpan or search on metacpan
lib/Algorithm/SixDegrees.pm view on Meta::CPAN
=cut
sub new {
my $class = shift;
my $self = {
_source_left => {},
_source_right => {},
_sources => [],
_investigated => {},
};
return bless $self,$class;
}
=head1 FUNCTIONS
=head2 forward_data_source( name => \&sub, @args );
Tells C<Algorithm::SixDegrees> that all items in the data set relating to
C<name> can be retrieved by calling C<sub>. See L</SUBROUTINE RULES>.
In our friends example above, if Bob considers Mark a friend, but Mark
( run in 0.585 second using v1.01-cache-2.11-cpan-de7293f3b23 )