Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/12 16:57:31 (12 years ago)
Author:
spimming
Message:

#1894 graph interface and implementation initial commit

Location:
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Edge.cs

    r8300 r8438  
    1212    }
    1313
    14     public Edge(Vertex source, Vertex target) {
     14    private short category;
     15    public short Category {
     16      get { return category; }
     17      set { category = value; }
     18    }
     19
     20    public Edge(Vertex source, Vertex target)
     21      : this(source, target, 0) {
     22
     23    }
     24
     25    public Edge(Vertex source, Vertex target, short category) {
    1526      this.source = source;
    1627      this.target = target;
     28      this.category = category;
    1729    }
    1830
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Vertex.cs

    r8434 r8438  
    2222    public Vertex(long id) {
    2323      this.id = id;
     24    }
     25
     26    public Vertex(long id, double longitude, double latitude) {
     27      this.id = id;
     28      this.longitude = longitude;
     29      this.latitude = latitude;
    2430    }
    2531
Note: See TracChangeset for help on using the changeset viewer.