A Generalization of Line Connectivity and Optimally Invulnerable Graphs