Package com.gengoai.graph.scoring
Class AbstractVertexScorer<V>
- java.lang.Object
-
- com.gengoai.graph.scoring.AbstractVertexScorer<V>
-
- All Implemented Interfaces:
VertexScorer<V>
,Serializable
- Direct Known Subclasses:
DegreeScorer
,PageRank
,RandomWalkScorer
public abstract class AbstractVertexScorer<V> extends Object implements VertexScorer<V>, Serializable
Abstract base vertex scorer that provides the rank method- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractVertexScorer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map.Entry<V,Double>>
rank(Graph<V> g)
Ranks the vertices based on the score-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gengoai.graph.scoring.VertexScorer
score
-
-
-
-
Method Detail
-
rank
public List<Map.Entry<V,Double>> rank(Graph<V> g)
Description copied from interface:VertexScorer
Ranks the vertices based on the score- Specified by:
rank
in interfaceVertexScorer<V>
- Parameters:
g
- The graph- Returns:
- A sorted list of vertex - double pairs
-
-