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.
Version:
1.0 (18-09-2002)
Author:
ShashiMittal

Method Summary

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

Method Details

getToNode

public Node getToNode()
Returns the to node of this link
Returns:
the to node of this link

getType

public int getType()
This method is used to get the type(weight) of the link
Returns:
the type of the link

setToNode

public void setToNode(Node x)
Initializes the to node of this link
Parameters:
x - the to node of this link