Exemplo n.º 1
0
 /// <summary>
 /// Returns true if the given vertex has a witness calculator.
 /// </summary>
 /// <param name="graph"></param>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="via"></param>
 /// <param name="weight"></param>
 /// <param name="max_settles"></param>
 /// <returns></returns>
 public bool Exists(IBasicRouterDataSource <CHEdgeData> graph, uint from, uint to, uint via, float weight, int max_settles)
 {
     return(_router.CalculateWeight(graph, from, to, via, weight, max_settles) <= weight);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns true if the given vertex has a witness calculator.
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="via"></param>
 /// <param name="weight"></param>
 /// <param name="max_settles"></param>
 /// <returns></returns>
 public bool Exists(uint from, uint to, uint via, float weight, int max_settles)
 {
     return(_router.CalculateWeight(from, to, via, weight, max_settles) <= weight);
 }