Class VertexLength<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.vertex.VertexLength<U>
- All Implemented Interfaces:
VertexMetric<U>
public class VertexLength<U> extends java.lang.Object implements VertexMetric<U>
Class that measures the length (sum of weights of a selection of the edges concerning it) of a vertex.
-
Field Summary
Fields Modifier and Type Field Description private EdgeOrientation
uSel
Edge orientation which determines the set of edges we consider for each user. -
Constructor Summary
Constructors Constructor Description VertexLength(EdgeOrientation uSel)
Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.relison.sna.metrics.VertexMetric
averageValue, averageValue, compute, compute
-
Field Details
-
uSel
Edge orientation which determines the set of edges we consider for each user.
-
-
Constructor Details
-
VertexLength
Constructor.- Parameters:
uSel
- Edge orientation which determines the set of edges we consider for each user.
-
-
Method Details
-
compute
Description copied from interface:VertexMetric
Computes the value of the metric for a single user.- Specified by:
compute
in interfaceVertexMetric<U>
- Parameters:
graph
- The graph.user
- The user to compute.- Returns:
- the value of the metric.
-