Constructor and Description |
---|
Edge(INode n1,
INode n2) |
Edge(INode n1,
INode n2,
int w) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(INode n)
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 w)
Sets the weight/cost of the edge.
|
public void setWeight(int w)
IEdge
public INode getNode1()
IEdge
public INode getNode2()
IEdge
public int getWeight()
IEdge