Transport resilience and vulnerability: The role of connectivity