Creates a new instance of Link.

Namespace: Tsp
Assembly: Tsp (in Tsp.exe) Versión: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Link(
	Node n1,
	Node n2,
	int weight
)
Visual Basic
Public Sub New ( _
	n1 As Node, _
	n2 As Node, _
	weight As Integer _
)
Visual C++
public:
Link(
	Node^ n1, 
	Node^ n2, 
	int weight
)

Parameters

n1
Type: Tsp..::..Node
The first link node.
n2
Type: Tsp..::..Node
The second link node.
weight
Type: System..::..Int32
The weight for this Link.

See Also