A functional perspective on financial networks