|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.library.BaseVertex
public class BaseVertex
The base class for all vertices. By default each vertex has a integer property named color.
Field Summary | |
---|---|
protected BaseVertexProperties |
prop
|
Constructor Summary | |
---|---|
BaseVertex()
|
|
BaseVertex(BaseVertexProperties prop)
|
Method Summary | |
---|---|
int |
getColor()
Returns the color of the vertex. |
BaseVertex |
getCopy()
|
int |
getId()
Returns the index of the vertex in the graph. |
boolean |
getMark()
Returns true if the vertex is already marked. |
BaseVertexProperties |
getProp()
Returns property object for this vertex. |
void |
setColor(int color)
Sets the color of the vertex. |
void |
setMark(boolean mark)
Flag whether it is marked. |
void |
setProp(BaseVertexProperties prop)
Sets properties object for this vertex; Overwrites the existing. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BaseVertexProperties prop
Constructor Detail |
---|
public BaseVertex(BaseVertexProperties prop)
public BaseVertex()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public BaseVertex getCopy()
public int getColor()
public void setColor(int color)
color
- Sets col as the color of the vertex.public boolean getMark()
public void setMark(boolean mark)
mark
- whether the vertex is marked.public int getId()
public void setProp(BaseVertexProperties prop)
prop
- The property object to set.public BaseVertexProperties getProp()
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |