Probabilistic Network Topology Prediction for Active Planning: An Adaptive Algorithm and Application