with Interactions Topology-based Representations for Motion Planning and Generalisation in Dynamic Environments