game
Class Link
public class Link
extends java.lang.Object
Defines the basic properties of a Link.This class can be used to define a
graph or a multi-graph with weighted edges.
Node | getToNode() - Returns the to node of this link
|
int | getType() - This method is used to get the type(weight) of the link
|
void | setToNode(Node x) - Initializes the to node of this link
|
getToNode
public Node getToNode()
Returns the to node of this link
getType
public int getType()
This method is used to get the type(weight) of the link
setToNode
public void setToNode(Node x)
Initializes the to node of this link
x
- the to node of this link