Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8488


Ignore:
Timestamp:
08/14/12 14:31:45 (12 years ago)
Author:
spimming
Message:

#1894:

  • introduced weight property in Edge
  • new data source implementation for DIMACS graphs
  • lightweight data source implementation for osm graphs
  • cost calculator interface and implementations added
Location:
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/DIMACS/DIMACSDataSource.cs

    r8480 r8488  
    118118              Vertex vSrc = graph.GetVertex(src);
    119119              Vertex vDst = graph.GetVertex(dst);
     120
    120121              Edge<Vertex> edge = new Edge<Vertex>(vSrc, vDst);
    121               //TODO  len = weight
     122              edge.Weight = len;
     123
    122124              graph.AddEdge(edge);
    123125
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Edge.cs

    r8479 r8488  
    1616      get { return category; }
    1717      set { category = value; }
     18    }
     19
     20    private float weight;
     21    public float Weight {
     22      get { return weight; }
     23      set { weight = value; }
    1824    }
    1925
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/HeuristicLab.Problems.RoutePlanning.csproj

    r8480 r8488  
    5858  <ItemGroup>
    5959    <Compile Include="DIMACS\DIMACSDataSource.cs" />
     60    <Compile Include="Graph\EarthDistanceCostCalculator.cs" />
     61    <Compile Include="Graph\ICostCalculator.cs" />
    6062    <Compile Include="Graph\Edge.cs" />
    6163    <Compile Include="Graph\Graph.cs" />
     
    6567    <Compile Include="Graph\OsmVertex.cs" />
    6668    <Compile Include="Graph\Route.cs" />
     69    <Compile Include="Graph\TravelTimeCostCalculator.cs" />
    6770    <Compile Include="Graph\Vertex.cs" />
     71    <Compile Include="Osm.Data\OsmDataSource.cs" />
    6872    <Compile Include="Osm.Data\XmlDataSource.cs" />
    6973    <Compile Include="Osm\IDataSource.cs" />
Note: See TracChangeset for help on using the changeset viewer.