Characterizing the Influence of Topology on Graph Learning Tasks