V
- the vertex typepublic class DegreeScorer<V> extends java.lang.Object implements VertexScorer<V,java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
protected edu.uci.ics.jung.graph.Hypergraph<V,?> |
graph
The graph for which scores are to be generated.
|
Constructor and Description |
---|
DegreeScorer(edu.uci.ics.jung.graph.Hypergraph<V,?> graph)
Creates an instance for the specified graph.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getVertexScore(V v)
Returns the degree of the vertex.
|
protected edu.uci.ics.jung.graph.Hypergraph<V,?> graph
public DegreeScorer(edu.uci.ics.jung.graph.Hypergraph<V,?> graph)
graph
- the input graphpublic java.lang.Integer getVertexScore(V v)
getVertexScore
in interface VertexScorer<V,java.lang.Integer>