External functions for diameter estimation.