Class 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
    • 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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      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 Detail

      • MAX_ITERATIONS_DEFAULT

        public static final int MAX_ITERATIONS_DEFAULT
        Deprecated.
        Default number of maximum iterations.
        See Also:
        Constant Field Values
      • TOLERANCE_DEFAULT

        public static final double TOLERANCE_DEFAULT
        Deprecated.
        Default value for the tolerance. The calculation will stop if the difference of AlphaCentrality values between iterations change less than this value.
        See Also:
        Constant Field Values
      • DAMPING_FACTOR_DEFAULT

        public static final double DAMPING_FACTOR_DEFAULT
        Deprecated.
        Damping factor default value.
        See Also:
        Constant Field Values
      • EXOGENOUS_FACTOR_DEFAULT

        public static final double EXOGENOUS_FACTOR_DEFAULT
        Deprecated.
        Exogenous factor default value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 Detail

      • getScores

        public java.util.Map<V,​java.lang.Double> getScores()
        Deprecated.
        Get a map with the scores of all vertices
        Specified by:
        getScores in interface VertexScoringAlgorithm<V,​E>
        Returns:
        a map with all scores
      • getVertexScore

        public java.lang.Double getVertexScore​(V v)
        Deprecated.
        Get a vertex score
        Specified by:
        getVertexScore in interface VertexScoringAlgorithm<V,​E>
        Parameters:
        v - the vertex
        Returns:
        the score