de.cesr.more.measures.network.supply.algos
Class MOutDegreeScorer<V>
java.lang.Object
de.cesr.more.measures.network.supply.algos.MOutDegreeScorer<V>
- Type Parameters:
V
- vertex type
- All Implemented Interfaces:
- VertexScorer<V,Integer>
public class MOutDegreeScorer<V>
- extends Object
- implements VertexScorer<V,Integer>
MORe
- Date:
- 13.01.2011
Field Summary |
protected Hypergraph<V,?> |
graph
The graph for which scores are to be generated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
protected Hypergraph<V,?> graph
- The graph for which scores are to be generated.
MOutDegreeScorer
public MOutDegreeScorer(Hypergraph<V,?> graph)
- Creates an instance for the specified graph.
- Parameters:
graph
- the input graph
getVertexScore
public Integer getVertexScore(V v)
- In case the graph is an instance of
DirectedGraph
it
returns the out-degree of the vertex. Otherwise it returns the degree.
- Specified by:
getVertexScore
in interface VertexScorer<V,Integer>
- Returns:
- the (out-)degree of the vertex