Example #1
0
 public AStarModified(IGraph graph, IEndPoints endPoints, IStepRule stepRule, IHeuristic function)
     : base(graph, endPoints, stepRule, function)
 {
     PercentOfFarthestVerticesToDelete
                     = CalculatePercentOfFarthestVerticesToDelete;
     deletedVertices = new Queue <IVertex>();
 }
Example #2
0
 public GraphPath(ParentVertices parentVertices,
                  IEndPoints endPoints, IGraph graph, IStepRule stepRule)
 {
     this.parentVertices = parentVertices;
     this.graph          = graph;
     this.endPoints      = endPoints;
     this.stepRule       = stepRule;
 }
Example #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;
 }
Example #4
0
 public WalkStepRule(IStepRule stepRule)
 {
     this.stepRule = stepRule;
 }
Example #5
0
 public AStarAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : this(graph, endPoints, stepRule, new ChebyshevDistance())
 {
 }
Example #6
0
 public AStarAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule, IHeuristic function)
     : base(graph, endPoints, stepRule)
 {
     heuristic = function;
 }
Example #7
0
 public CostGreedyAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints)
 {
     this.stepRule = stepRule;
 }
Example #8
0
 public AStarModified(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints, stepRule, new ChebyshevDistance())
 {
 }
Example #9
0
 public DijkstraAlgorithm(IGraph graph, IEndPoints endPoints, IStepRule stepRule)
     : base(graph, endPoints)
 {
     this.stepRule = stepRule;
 }
Example #10
0
 public WalkStepRule(IStepRule stepRule, int walkStepCost = 1)
 {
     this.stepRule     = stepRule;
     this.walkStepCost = walkStepCost;
 }
Example #11
0
 public DiagonalExpensiveStepRule(IStepRule stepRule)
 {
     this.stepRule = stepRule;
 }