General metrics for segmenting infrastructure networks