Data-Driven Adaptive Consensus Learning From Network Topologies