-
Notifications
You must be signed in to change notification settings - Fork 2
/
Node.cs
49 lines (48 loc) · 1015 Bytes
/
Node.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Travelling_SalesMan_Problem;
namespace Lab_8
{
class Node
{
private Node Next;
private DeliveryBoy data;
public Node(DeliveryBoy data, Node next)
{
this.data = data;
this.Next = next;
}
public Node()
{
this.data = null;
this.Next = null;
}
public Node(DeliveryBoy data)
{
this.data = data;
}
public Node(Node next)
{
this.Next = next;
}
public DeliveryBoy getData()
{
return this.data;
}
public Node getNext()
{
return this.Next;
}
public void setData(DeliveryBoy data)
{
this.data = data;
}
public void setNext(Node next)
{
this.Next = next;
}
}
}