From Static to Dynamic: a Survey of Topology-Aware Perception in Autonomous Driving