Regression and Alignment for Functional Data and Network Topology