edu.uci.ics.jung.algorithms.scoring.util
Class UniformDegreeWeight<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.scoring.util.UniformDegreeWeight<V,E>
public class UniformDegreeWeight<V,E>
- extends Object
An edge weight function that assigns weights as uniform
transition probabilities.
For undirected edges, returns 1/degree(v) (where 'v' is the
vertex in the VEPair.
For directed edges, returns 1/outdegree(source(e)) (where 'e'
is the edge in the VEPair).
Throws an IllegalArgumentException
if the input
edge is neither EdgeType.UNDIRECTED nor EdgeType.DIRECTED.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniformDegreeWeight
public UniformDegreeWeight(Hypergraph<V,E> graph)
- Creates an instance for the specified graph.
transform
public Double transform(VEPair<V,E> ve_pair)
- See Also:
org.apache.commons.collections15.Transformer#transform(java.lang.Object)
Copyright © 2010 null. All Rights Reserved.