Class AlphaCentrality<V,​E>

java.lang.Object
org.jgrapht.alg.scoring.AlphaCentrality<V,​E>
Type Parameters:
V - the graph vertex type
E - the graph edge type
All Implemented Interfaces:
VertexScoringAlgorithm<V,​java.lang.Double>

@Deprecated
public final class AlphaCentrality<V,​E>
extends java.lang.Object
implements VertexScoringAlgorithm<V,​java.lang.Double>
Deprecated.
Please use KatzCentrality instead.
Deprecated implementation of Katz centrality.
Author:
Dimitrios Michail, Pratik Tibrewal
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static double DAMPING_FACTOR_DEFAULT
    Deprecated.
    Damping factor default value.
    static double EXOGENOUS_FACTOR_DEFAULT
    Deprecated.
    Exogenous factor default value.
    static int MAX_ITERATIONS_DEFAULT
    Deprecated.
    Default number of maximum iterations.
    static double TOLERANCE_DEFAULT
    Deprecated.
    Default value for the tolerance.
  • Constructor Summary

    Constructors 
    Constructor Description
    AlphaCentrality​(Graph<V,​E> g)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor, int maxIterations)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor, int maxIterations, double tolerance)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
    AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations, double tolerance)
    Deprecated.
    Create and execute an instance of AlphaCentrality.
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<V,​java.lang.Double> getScores()
    Deprecated.
    Get a map with the scores of all vertices
    java.lang.Double getVertexScore​(V v)
    Deprecated.
    Get a vertex score

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactor - the exogenous factor
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactorFunction - ToDoubleFunction a provider of exogenous factors per vertex
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor, int maxIterations)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactor - the exogenous factor
      maxIterations - the maximum number of iterations to perform
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactorFunction - ToDoubleFunction a provider of exogenous factors per vertex
      maxIterations - the maximum number of iterations to perform
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, double exogenousFactor, int maxIterations, double tolerance)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactor - the exogenous factor
      maxIterations - the maximum number of iterations to perform
      tolerance - the calculation will stop if the difference of AlphaCentrality values between iterations change less than this value
    • AlphaCentrality

      public AlphaCentrality​(Graph<V,​E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations, double tolerance)
      Deprecated.
      Create and execute an instance of AlphaCentrality.
      Parameters:
      g - the input graph
      dampingFactor - the damping factor
      exogenousFactorFunction - ToDoubleFunction a provider of exogenous factors per vertex
      maxIterations - the maximum number of iterations to perform
      tolerance - the calculation will stop if the difference of AlphaCentrality values between iterations change less than this value
  • Method Details