How Topology And Dynamics Shape The Function Of Neural Systems