Add a new link to this graph. Really adds two links in both directions (n1->n2 and n2->n1).

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

Syntax

C#
public void AddLink(
	int id_node1,
	int id_node2,
	int weight
)
Visual Basic
Public Sub AddLink ( _
	id_node1 As Integer, _
	id_node2 As Integer, _
	weight As Integer _
)
Visual C++
public:
void AddLink(
	int id_node1, 
	int id_node2, 
	int weight
)

Parameters

id_node1
Type: System..::..Int32
The node1 identifier.
id_node2
Type: System..::..Int32
The node2 identifier.
weight
Type: System..::..Int32
The weight for the link.

See Also