Ejemplo n.º 1
0
 public static IGraphRoute<TestCell> GetRoute(IFlatOrthogonalGraph<TestCell> graph, Func<TestCell, TestCell, double> estimator, TestCell source, TestCell target)
 {
     return graph.CalculateRoute(source, target,
         (a, b) => estimator(a, b),
         (a, b) => 1,
         (a) => a.Blocked
         );
 }
Ejemplo n.º 2
0
 public static IGraphRoute<TestCell> CalcRoute(IFlatOrthogonalGraph<TestCell> graph, Func<TestCell, TestCell, double> estimator)
 {
     return graph.CalculateRoute(graph[0, 0], graph[_scale * 8, 0], estimator, (a, b) => 1, (a) => a.Blocked);
 }