Graph-based encoding of curve driving using spatial keypoints | Synapse