Domain Adaptation on Graphs by Learning Graph Topologies: Theoretical Analysis and an Algorithm