|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphlab.library.BaseEdge<VertexType>
public class BaseEdge<VertexType extends BaseVertex>
The base class for all edges. By default each vertex has two integer properties, color and weight.
| Field Summary | |
|---|---|
VertexType |
head
|
VertexType |
tail
|
| Constructor Summary | |
|---|---|
BaseEdge(VertexType head,
VertexType tail)
|
|
BaseEdge(VertexType head,
VertexType tail,
BaseEdgeProperties prop)
|
|
| Method Summary | |
|---|---|
int |
compareTo(BaseEdge<VertexType> o)
Compares two edges according to their wrights. |
int |
getColor()
Returns the color of the edge. |
boolean |
getMark()
Returns the mark of the edge. |
BaseEdgeProperties |
getProp()
Returns property object for this edge. |
int |
getWeight()
Returns the weight of the edge. |
void |
setColor(int color)
Sets the color of the edge. |
void |
setMark(boolean m)
Sets the mark of the edge. |
void |
setProp(BaseEdgeProperties prop)
Sets properties object for this edge; Overwrites the existing. |
void |
setWeight(int weight)
Sets the weight of the edge. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final VertexType extends BaseVertex head
public final VertexType extends BaseVertex tail
| Constructor Detail |
|---|
public BaseEdge(VertexType head,
VertexType tail)
public BaseEdge(VertexType head,
VertexType tail,
BaseEdgeProperties prop)
| Method Detail |
|---|
public int getColor()
public void setColor(int color)
col - Sets col as the color of the edge.public int getWeight()
public void setWeight(int weight)
w - Sets w as the color of the edge.public boolean getMark()
public void setMark(boolean m)
m - Sets m as the mark of the edge.public void setProp(BaseEdgeProperties prop)
prop - The property object to set.public BaseEdgeProperties getProp()
public int compareTo(BaseEdge<VertexType> o)
compareTo in interface java.lang.Comparable<BaseEdge<VertexType extends BaseVertex>>o - Edge to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||