Documentation of 'edu.uci.ics.jung.algorithms.scoring.DegreeScorer' Java class
DegreeScorer
edu.uci.ics.jung.algorithms.scoring

Class DegreeScorer<V>

  • Type Parameters:
    V - the vertex type
    All Implemented Interfaces:
    VertexScorer<V,java.lang.Integer>


    public class DegreeScorer<V>
    extends java.lang.Object
    implements VertexScorer<V,java.lang.Integer>
    Assigns a score to each vertex equal to its degree.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DegreeScorer(Hypergraph<V,?> graph)
      Creates an instance for the specified graph.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer getVertexScore(V v)
      Returns the degree of the vertex.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DegreeScorer

        public DegreeScorer(Hypergraph<V,?> graph)
        Creates an instance for the specified graph.
        Parameters:
        graph - the input graph
    • Method Detail

      • getVertexScore

        public java.lang.Integer getVertexScore(V v)
        Returns the degree of the vertex.
        Specified by:
        getVertexScore in interface VertexScorer<V,java.lang.Integer>
        Parameters:
        v - the vertex whose score is requested
        Returns:
        the degree of the vertex

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.