A network topology optimization tool