|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
BaseVertex()
|
|
BaseVertex(BaseVertexProperties prop)
|
|
| Method Summary | |
|---|---|
int |
getColor()
Returns the color of the vertex. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseVertex(BaseVertexProperties prop)
public BaseVertex()
| Method Detail |
|---|
public int getColor()
public void setColor(int color)
col - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||