add ability to adjust link density threshold