Exemplo n.º 1
0
 public AStarModified(IGraph graph, IEndPoints endPoints, IStepRule stepRule, IHeuristic function)
     : base(graph, endPoints, stepRule, function)
 {
     PercentOfFarthestVerticesToDelete
                     = CalculatePercentOfFarthestVerticesToDelete;
     deletedVertices = new Queue <IVertex>();
 }
Exemplo n.º 2
0
 public GraphPath(ParentVertices parentVertices,
                  IEndPoints endPoints, IGraph graph, IStepRule stepRule)
 {
     this.parentVertices = parentVertices;
     this.graph          = graph;
     this.endPoints      = endPoints;
     this.stepRule       = stepRule;
 }
Exemplo n.º 3
0
 public GraphPath(ParentVertices parentVertices,
                  IEndPoints endPoints, IGraph graph, IStepRule stepRule)
 {
     path                = new Lazy <IVertex[]>(GetPath);
     pathCost            = new Lazy <double>(ExtractPathCost);
     pathLength          = new Lazy <int>(GetPathLength);
     this.parentVertices = parentVertices;
     this.graph          = graph;
     this.endPoints      = endPoints;
     this.stepRule       = stepRule;
 }
Exemplo n.º 4
0
 public WalkStepRule(IStepRule stepRule)
 {
     this.stepRule = stepRule;
 }
Exemplo n.º 5
0
 public AStarAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : this(graph, endPoints, stepRule, new ChebyshevDistance())
 {
 }
Exemplo n.º 6
0
 public AStarAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule, IHeuristic function)
     : base(graph, endPoints, stepRule)
 {
     heuristic = function;
 }
Exemplo n.º 7
0
 public CostGreedyAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints)
 {
     this.stepRule = stepRule;
 }
Exemplo n.º 8
0
 public AStarModified(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints, stepRule, new ChebyshevDistance())
 {
 }
Exemplo n.º 9
0
 public DijkstraAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints)
 {
     this.stepRule = stepRule;
 }
Exemplo n.º 10
0
 public WalkStepRule(IStepRule stepRule, int walkStepCost = 1)
 {
     this.stepRule     = stepRule;
     this.walkStepCost = walkStepCost;
 }
Exemplo n.º 11
0
 public DiagonalExpensiveStepRule(IStepRule stepRule)
 {
     this.stepRule = stepRule;
 }