NetworkConfigurator: Factored out the network topology extraction algorithm.