add Floyd to calculate diameter.
add multiple hop cutting link tolerance.