Add topology validation