Main Page
Namespaces
Classes
Files
File List
File Members
src
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
}
Node
Definition:
LKH.h:68
Node::CandidateSet
Candidate * CandidateSet
Definition:
LKH.h:119
Candidate::To
Node * To
Definition:
LKH.h:135
LKH.h
Candidate
Definition:
LKH.h:134
IsCandidate
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