public class BCTreeEdge extends java.lang.Object implements Edge<BCTreeNode>
| Constructor and Description |
|---|
BCTreeEdge(BCTreeNode origin,
BCTreeNode destination)
Construct a BC-tree edge with the specified origina and destination nodes
|
| Modifier and Type | Method and Description |
|---|---|
BCTreeNode |
getDestination() |
BCTreeNode |
getOrigin() |
int |
getWeight() |
void |
setDestination(BCTreeNode destination) |
void |
setOrigin(BCTreeNode origin) |
void |
setWeight(int weight) |
java.lang.String |
toString() |
public BCTreeEdge(BCTreeNode origin, BCTreeNode destination)
origin - Origin nodedestination - Destination nodepublic BCTreeNode getOrigin()
getOrigin in interface Edge<BCTreeNode>public BCTreeNode getDestination()
getDestination in interface Edge<BCTreeNode>public void setOrigin(BCTreeNode origin)
setOrigin in interface Edge<BCTreeNode>origin - Origin vertex to setpublic void setDestination(BCTreeNode destination)
setDestination in interface Edge<BCTreeNode>destination - Destination vertex to setpublic int getWeight()
getWeight in interface Edge<BCTreeNode>public java.lang.String toString()
toString in class java.lang.Objectpublic void setWeight(int weight)
setWeight in interface Edge<BCTreeNode>weight - Weight to set