Type Parameters:
U - type of the users
All Implemented Interfaces:
GlobalReranker<U,​U>
Direct Known Subclasses:
AbstractCommunityDegreeGiniComplement, AbstractCommunityEdgeGiniComplement, AlternativeSemiCompleteCommunityEdgeGiniComplement, OuterAlternativeSemiCompleteCommunityEdgeGiniComplement, SizeNormalizedCompleteCommunityEdgeGiniComplement, SizeNormalizedInterCommunityEdgeGiniComplement, SizeNormalizedSemiCompleteCommunityEdgeGiniComplement

public abstract class CommunityReranker<U>
extends GraphSwapReranker<U>
Swap reranker for modifying it according to the community metrics of the network.
  • Field Details

  • Constructor Details

    • CommunityReranker

      public CommunityReranker​(double lambda, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> communities, boolean selfloops)
      Constructor
      Parameters:
      lambda - a trade-off between the original score and the metric value
      cutoff - the number of items to rerank
      norm - the normalization scheme.
      graph - the original network.
      communities - relation between communities and users.
      selfloops - true if selfloops are allowed, false if they are not.
  • Method Details