public interface IEdge
Modifier and Type | Method and Description |
---|---|
boolean |
contains(INode node)
Checks if the node is at the end of one side of the edge.
|
INode |
getNode1()
Gets the node which is at the end of one side of the edge.
|
INode |
getNode2()
Gets the node which is at the end of the other side of the edge.
|
int |
getWeight()
Gets the weight/cost of the edge.
|
void |
setWeight(int weight)
Sets the weight/cost of the edge.
|
void setWeight(int weight)
weight
- weight/cost of the edge.INode getNode1()
INode getNode2()
int getWeight()
boolean contains(INode node)
node
- node to check.