Free cookie consent management tool by TermsFeed Policy Generator

source: branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Route.cs @ 8438

Last change on this file since 8438 was 8321, checked in by spimming, 12 years ago

#1894: initial version of astar algorithm

File size: 704 bytes
Line 
1
2namespace 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.