Line | |
---|
1 |
|
---|
2 | namespace HeuristicLab.Problems.RoutePlanning.Graph {
|
---|
3 | // represent linked vertices
|
---|
4 | public class Route {
|
---|
5 | private long headVertexId;
|
---|
6 | public long HeadVertexId {
|
---|
7 | get { return headVertexId; }
|
---|
8 | }
|
---|
9 |
|
---|
10 | private float weight;
|
---|
11 | public float Weight {
|
---|
12 | get { return weight; }
|
---|
13 | }
|
---|
14 |
|
---|
15 | private Route tail;
|
---|
16 | public Route Tail {
|
---|
17 | get { return tail; }
|
---|
18 | }
|
---|
19 |
|
---|
20 | public Route(long vertexId) {
|
---|
21 | this.headVertexId = vertexId;
|
---|
22 | this.weight = 0;
|
---|
23 | this.tail = null;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public Route(long vertexId, float weight, Route tail) {
|
---|
27 | this.headVertexId = vertexId;
|
---|
28 | this.weight = weight;
|
---|
29 | this.tail = tail;
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
33 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.