IsCandidate.c
Go to the documentation of this file.
1 #include "LKH.h"
2 
3 /*
4  * The IsCandidate function is used to test if an edge, (ta,tb),
5  * belongs to the set candidate edges.
6  *
7  * If the edge is a candidate edge the function returns 1; otherwise 0.
8  */
9 
10 int IsCandidate(const Node * ta, const Node * tb)
11 {
12  Candidate *Nta;
13 
14  for (Nta = ta->CandidateSet; Nta && Nta->To; Nta++)
15  if (Nta->To == tb)
16  return 1;
17  return 0;
18 }
Definition: LKH.h:68
Candidate * CandidateSet
Definition: LKH.h:119
Node * To
Definition: LKH.h:135
Definition: LKH.h:134
int IsCandidate(const Node *ta, const Node *tb)
Definition: IsCandidate.c:10


glkh_solver
Author(s): Francisco Suarez-Ruiz
autogenerated on Mon Jun 10 2019 13:50:26