A Unified Framework for Exploratory Learning-Aided Community Detection in Networks with Unknown Topology