Clair::LinkPolicy

BarabasiAlbert


SummaryPackage variablesSynopsisDescriptionGeneral documentationMethods

SummaryTop
Clair::LinkPolicy::BarabasiAlbert - Class implementing the Barabasi Albert link model.

Package variablesTop
No package variables defined.

Included modulesTop
Carp

SynopsisTop

DescriptionTop
BarabasiAlbert
Class implementing the Barabasi Albert link model.
INHERITS FROM:
LinkPolicy
REQUIRED RESOURCES:
XXX
METHODS IMPLEMENTED BY THIS CLASS:
new Object Constructor
create_corpus Creates a corpus using this link policy. Generic object constructor for all link policies. Should
only be called by subclass constructors.
  base_collection	=> $collection_object
type => $name_of_this_linker_type

MethodsTop
create_corpusDescriptionCode
newNo descriptionCode

Methods description


create_corpus code    nextTop
Generates a corpus using the Barabasi-Albert model.

Methods code


create_corpusdescriptionprevnextTop
sub create_corpus {
}

newdescriptionprevnextTop
sub new {
  my $class = shift;

  my $self = bless { @_ }, $class;

  # Verify parameters
unless ((exists $self->{base_collection}) && (exists $self->{base_collection})) { croak "LinkPolicy constructor requires parameters: base_collection => $collection_of_documents type => $this_policy_type\n"; } return $self;
}

General documentation


No general documentation available.