Computing connectivity Vectors