Testing topology algo code