graphlab
Class ScalarVertex

java.lang.Object
  extended by graphlab.Vertex
      extended by graphlab.dense.DenseVertex
          extended by graphlab.ScalarVertex

public class ScalarVertex
extends DenseVertex

Author:
jegonzal

Field Summary
 float selfEdgeWeight
           
 float value
          The value associated with the vertex
 
Fields inherited from class graphlab.Vertex
id
 
Constructor Summary
ScalarVertex(DenseGraph graph, float value, int estdegree)
          Create a vertex with some default value
 
Method Summary
 float getSelfEdgeWeight()
           
 float getValue()
          Get the value storted at the vertex
 void setSelfEdgeWeight(float selfEdgeWeight)
           
 void setValue(float value)
          Set the value of the vertex
 java.lang.String toString()
           
 
Methods inherited from class graphlab.dense.DenseVertex
addIncomingEdge, addOutgoingEdge, getChildren, getEdgeFrom, getEdgeTo, getInboundEdges, getOutboundEdges, getParents, optimizeDataStructures
 
Methods inherited from class graphlab.Vertex
getId, getVertexColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public float value
The value associated with the vertex


selfEdgeWeight

public float selfEdgeWeight
Constructor Detail

ScalarVertex

public ScalarVertex(DenseGraph graph,
                    float value,
                    int estdegree)
Create a vertex with some default value

Parameters:
value -
Method Detail

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