-
Notifications
You must be signed in to change notification settings - Fork 2
/
Link.cs
62 lines (60 loc) · 1.97 KB
/
Link.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//////////////////////////////////////////////////////////////////////////////////////////////////
// File Name: Link.cs
// Permission to use, copy, modify, and distribute this Program and its documentation,
// if any, for any purpose and without fee is hereby granted, provided that:
// (i) you not charge any fee for the Program, and the Program not be incorporated
// by you in any software or code for which compensation is expected or received;
// (ii) the copyright notice listed above appears in all copies;
// (iii) both the copyright notice and this Agreement appear in all supporting documentation; and
// (iv) the name of Michael LaLena or lalena.com not be used in advertising or publicity
// pertaining to distribution of the Program without specific, written prior permission.
///////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
namespace Tsp
{
/// <summary>
/// An individual link between 2 cities in a tour.
/// This city connects to 2 other cities.
/// </summary>
public class Link
{
/// <summary>
/// Connection to the first city.
/// </summary>
private int connection1;
/// <summary>
/// Connection to the first city.
/// </summary>
public int Connection1
{
get
{
return connection1;
}
set
{
connection1 = value; ;
}
}
/// <summary>
/// Connection to the second city.
/// </summary>
private int connection2;
/// <summary>
/// Connection to the second city.
/// </summary>
public int Connection2
{
get
{
return connection2;
}
set
{
connection2 = value;
}
}
}
}