graphlab.dense
Class ScalarVertex
java.lang.Object
graphlab.Vertex
graphlab.dense.DenseVertex
graphlab.dense.ScalarVertex
public class ScalarVertex
- extends DenseVertex
A subclass of DenseVertex carrying a a scalar value. Special handling for self-edges.
- Author:
- akyrola
| Fields inherited from class graphlab.Vertex |
id |
|
Constructor Summary |
ScalarVertex(DenseGraph graph,
float value,
int estdegree)
Create a vertex with some default value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
public float value
- The value associated with the vertex
selfEdgeWeight
public float selfEdgeWeight
ScalarVertex
public ScalarVertex(DenseGraph graph,
float value,
int estdegree)
- Create a vertex with some default value
- Parameters:
value -
getValue
public float getValue()
- Get the value storted at the vertex
- Returns:
- the value associated with the vertes
setValue
public void setValue(float value)
- Set the value of the vertex
- Parameters:
value - the new vertex value
getSelfEdgeWeight
public float getSelfEdgeWeight()
setSelfEdgeWeight
public void setSelfEdgeWeight(float selfEdgeWeight)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object