An embedding-based distance for temporal graphs