Kernighan-Lin.cpp
bool find_in_list(int val,list<int>& set){
	if(find(set.begin(),set.end(),val) == set.end()){
		return false;
	}else{
		return true;
	}
}
//Function to check if an edge exists in the input edge list
//returns true or false
Function to check if an edge exists in the input edge list
returns true or false
Function to check if an edge exists in the input edge list returns true or false
bool find_in_list(int val,list<int>& set){
	if(find(set.begin(),set.end(),val) == set.end()){
		return false;
	}else{
		return true;
	}
}
bool find_in_list ( int val , list < int > & set ) { if ( find ( set . begin ( ) , set . end ( ) , val ) == set . end ( ) ) { return false ; } else { return true ; } }
Function to check if an edge exists in the input edge list
returns true or false
Function to check if an edge exists in the input edge list returns true or false