V - the vertex typepublic class DegreeScorer<V> extends Object implements VertexScorer<V,Integer>
| Modifier and Type | Field and Description |
|---|---|
protected Hypergraph<V,?> |
graph
The graph for which scores are to be generated.
|
| Constructor and Description |
|---|
DegreeScorer(Hypergraph<V,?> graph)
Creates an instance for the specified graph.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getVertexScore(V v)
Returns the degree of the vertex.
|
protected Hypergraph<V,?> graph
public DegreeScorer(Hypergraph<V,?> graph)
graph - the input graphpublic Integer getVertexScore(V v)
getVertexScore in interface VertexScorer<V,Integer>v - the vertex whose score is requestedCopyright © 2016. All rights reserved.