Code moved from the 'mt-network-analysis-impl.