Update the parameter and change the edge selection process.