Ability to choose the type of connectivity and ValueError
Test for the two neighborhood values